Hello Greg, Steve
Great questions. I think the right answer is to implement MIDI beat
clock to sync external apps to ChucK
http://en.wikipedia.org/wiki/MIDI_beat_clock
Going the other way (adjusting ChucK's timing to incoming MIDI clock)
is way beyond me.
To follow on Manuel's suggestion, here is a time signature class
implemented in that fashion and an example
https://github.com/heuermh/lick/blob/master/TimeSignature.ck
https://github.com/heuermh/lick/blob/master/examples/timeSignatureExample.ck
michael
On Thu, Dec 5, 2013 at 12:26 PM, Manuel Bärenz
An easy solution is to just define what a bar is, and then go from there:
1::minute / bars_per_minute => bar; // set bars_per_minute accordingly bar / 8 => quaver; SinOsc s => dac; 440 => s.freq; while (true) { quaver => now; 0 => s.gain; quaver => now; 1 => s.gain; }
It would help if we knew more about the format that you have the timing in.
Am 05/12/13 18:11, schrieb Gregorio Gomez:
Hi, Steve:
Unfortunately, I don't have an answer for you, but I'm hoping someone does.
Did you figure this out?
I would love to find a way to drive FL studio from a MIDI source, and ChucK would be a great option for that -- I think. I always seem to hit roadblocks when trying to drive FLS via midi.
What DAW are you using?
Greg
-----Original Message----- From: Blixa Barscheck [mailto:Blixa2@gmx.net] Sent: Saturday, November 30, 2013 12:27 To: chuck-mailinglist Subject: [chuck-users] MIDI-synchronization and metric timing (?)
Hi, ChucK-Community!
My name is Steve. So far I have been using Max 6 for MIDI-programming. My primary workflow is that I generate MIDI-data in Max and send them to my DAW where it's used to trigger several SoftSynths. I am the point now, however, where Max doesn't offer me enough flexibility to realize what I want to do. I am considering switching to ChucK. There is one thing, however, I need to know about ChucK: In Max I am able to synchronize it's timing mechanism to my DAW and define any kind of timing data (e.g.: frequency of an LFOsc) in metric timing (1/16-notes, 1/8-notes, etc.). Is this also possible in ChucK? If no, then ChucK unfortunately is no option for me, at least at the moment.
Thanks!
best regards, steve
-- Diese E-Mail wurde aus dem Sicherheitsverbund E-Mail made in Germany versendet: http://www.gmx.net/e-mail-made-in-germany
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users