在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:scribbletune/scribbletune开源软件地址:https://github.com/scribbletune/scribbletune开源编程语言:TypeScript 96.2%开源软件介绍:SCRIBBLETUNEUse simple JavaScript Installnpm install scribbletune Use it to create a MIDI clip by running a JS file from your terminal using node.jsconst scribble = require('scribbletune');
const clip = scribble.clip({
notes: scribble.scale('C4 major'),
pattern: 'x'.repeat(7) + '_'
});
scribble.midi(clip, 'c-major.mid'); You can use Scribbletune even in the browser with Tone.js!. There are a couple of ways to do this. A quick and dirty way is to make sure to pull in Tone.js followed by the latest browser version of Scribbletune. <script src="https://cdnjs.cloudflare.com/ajax/libs/tone/<LATEST-VERSION-FROM-CDNJS>/Tone.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/scribbletune/<LATEST-VERSION-FROM-CDNJS>/scribbletune.js"></script> This will expose a global object called The recommended way for the browser, however, is to import it like this const scribble = require('scribbletune/browser'); This will provide the same API but augment it a bit to support browser based functionality. Similarly, you can use the Scribbletune API for Max for Live development by doing const scribble = require('scribbletune/max'); Just like the Visit scribbletune.com for documentation, tutorials and examples! Listen to music generated with Scribbletune on Soundcloud. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论