Comments (1)
Thank you for pointing this out @JestDotty ! I will update the docs once I get some time but to unblock you for now, I m sharing some details here.
The instrument
parameter is newly updated in Scribbletune and it will replace the synth
parameters in the futures. Either ways, it uses a Tone.js instrument and can be use like this
scribble
.clip({
instrument: 'Synth', // string
pattern: 'xx[xx]',
notes: 'C3 Cm-3'
})
.start();
The following synths are provided thanks to Tone.js and you can define the instrument
by seeing one of the following values as a string:
- AMSynth
- DuoSynth
- FMSynth
- MembraneSynth
- MetalSynth
- MonoSynth
- NoiseSynth
- PluckSynth
- PolySynth
- Sampler
- Synth
You could even define the instrument
as a Tone.js object like this,
const synth = new Tone.Synth();
scribble
.clip({
instrument: synth,
pattern: 'xx[xx]',
notes: 'C3 Cm-3'
})
.start();
and then augment it like this
synth.set({oscillator: {type: "sawtooth"}});
There is yet another way to define synths. You can initialize a Tone.js instrument with a JSON payload that defines the properties of the synth. This is a bit advanced way of doing it, but if you feel like giving it a shot, the play around with some of the "Instruments" here https://tonejs.github.io/examples/ and change their properties. Then click the <>
button on the bottom and get hold of the JSON payload and use it here
const synth = new Tone.Synth({<jsonPayload here>});
Hope this helps for now!
from scribbletune.
Related Issues (20)
- The five chord in minor scale is "m"
- Error on the https://scribbletune.com/documentation/max webpage HOT 3
- Feature idea: Stream midi HOT 3
- Triplets problem? HOT 6
- hyphen doesnt work in v4 anymore HOT 1
- '-' in rhythmic pattern language acting weird in the new version HOT 1
- Notes in clip are always 1 octave lower than specified HOT 4
- Is it possible to merge 2 clips? HOT 3
- Deprecated LOM method in max.ts HOT 8
- slight imprecisions when generating short notes with max.ts
- Cannot read properties of undefined (reading 'getSeqFn') HOT 12
- `ClipParams`, `NoteObject` types not found
- Why is the “startClip” delayed? HOT 1
- Facing issue importing the module HOT 3
- `types` should point to `./dist/index.d.ts` now HOT 4
- Are triplets supported? HOT 3
- Feature Request: Bring back the Tonal export HOT 3
- [FEEDBACK REQUESTED]: ScribbleTune API-features for a command line interface. HOT 1
- Outdated Documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scribbletune.