scribbletune | Create music with JavaScript | Audio Utils library
kandi X-RAY | scribbletune Summary
kandi X-RAY | scribbletune Summary
Use simple JavaScript Strings and Arrays to generate rhythms and musical patterns. Directly use the names of scales or chords in your code to get arrays which you can mash up using Array methods in ways you hadn't imagined before! Create clips of musical ideas and export MIDI files which you can import in Ableton Live, Reason, GarageBand or any music creation software that accepts MIDI files.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of scribbletune
scribbletune Key Features
scribbletune Examples and Code Snippets
const http = require("http");
const MidiConvert = require("midiconvert"); // npm install midiconvert
const scribble = require("scribbletune"); // npm install scribbletune
const createMidiForToneJs = (notes, pattern) => {
let clip =
Community Discussions
Trending Discussions on scribbletune
QUESTION
So im developing an app in node where i use scribbletune
To create a midi-file:
...ANSWER
Answered 2019-Jan-31 at 22:00If you only want to play the generated MIDI in the browser and converting the file to ogg first and playing it using an audio tag is not a requirement, MidiConvert and Tone.js (as briefly explained in Scribbletune docs) can do the job.
I've hacked together an example:
QUESTION
I have been trying to use a node.js script to turn some data into music. The script is only returning a single note for some reason:
The orignal script on github: https://github.com/wbkd/from-data-to-sound had res.concat(scribble.scale('c', but the threw an error Invalid Scale name.
...ANSWER
Answered 2018-Dec-12 at 13:38From scribbletune doc:
each x implies a note on event
Since you're passing only 1 'x' as a pattern in scribble.clip
, it only plays 1 note. In order for all the notes to be played, you can try something like this:
QUESTION
Is it possible to run a JavaScript file with node.js on windows? I have been trying to for hours and can't find any more solutions on the internet that work.
I have a js-file that uses scribbletune which only works with node.js. I have node.js installed and I installed gitbash because it was recommended in a forum. I tried to run from command prompt and gitbash but nothing seems to happen. What am I doing wrong? Any help would be very much appreciated.
...ANSWER
Answered 2017-Aug-25 at 09:11There is no need to install gitbash to use Node on Windows. It's a handy thing to have if you're used to a *nix environment. If you're not, it just gives you something more to learn, which isn't helpful if you're already in the middle of trying to learn Node.
Just:
Get the Windows installer from https://nodejs.org/en/download/
Run the Windows installer
Create a directory for your project
Open a Command Prompt Window to get a command line
Switch to your project directory
(Optional, but a good idea) Use
npm init
to create apackage.json
file (it'll walk you through it)Install any libs you're going to be using via
npm
(for instance,npm install scribbletune
from your command prompt window)Put your JavaScript files in that directory
Use
node main.js
at the command line to run your main file (whatever it's called;main.js
is just a placeholder)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install scribbletune
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page