| Author |
Message |
Dr. Spankenstein
Joined: Mar 03, 2007 Posts: 136 Location: Cambridge
Audio files: 1
|
Posted: Sun Jan 13, 2008 10:53 am Post subject:
MIDI Data from sequencers (better using OSC?) |
 |
|
How would I go about capturing MIDI data that is sent from various software sequencers without using OSC.
The MIDI data can always be read by my external keyboard but ChucK wont recognise any data unless I physically play a note on the keyboard.
Is there an easy way to implement this?
Thanks
Rhys |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7682 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Jan 14, 2008 6:41 am Post subject:
|
 |
|
Google "midi loopback driver".
Commercial sequencers tend not to support OSC. _________________ Kassen |
|
|
Back to top
|
|
 |
Dr. Spankenstein
Joined: Mar 03, 2007 Posts: 136 Location: Cambridge
Audio files: 1
|
Posted: Mon Jan 14, 2008 11:56 am Post subject:
|
 |
|
Kassen you are a star!  |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7682 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Jan 14, 2008 12:21 pm Post subject:
|
 |
|
A star for such a small post? That was easy!
Happy to have been of asistance. _________________ Kassen |
|
|
Back to top
|
|
 |
Dr. Spankenstein
Joined: Mar 03, 2007 Posts: 136 Location: Cambridge
Audio files: 1
|
Posted: Wed Jan 16, 2008 11:19 am Post subject:
|
 |
|
Well I had no clue these things existed until you said and as a result I now have full MIDI control from any sequencer over the cut algorithm.
Awesome!
Many thanks,
Rhys |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7682 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Jan 16, 2008 1:46 pm Post subject:
|
 |
|
Actually I feel such routing should come with any OS out of the box. It's a bit disapointing to me that those drivers only arrived when they did but hey; we have them now so all is fine  _________________ Kassen |
|
|
Back to top
|
|
 |
Inventor

Joined: Oct 13, 2007 Posts: 5699 Location: San Antonio, Tx, USA
Audio files: 245
|
Posted: Thu Jan 17, 2008 12:14 am Post subject:
|
 |
|
| Dr. Spankenstein wrote: | Kassen you are a star!  |
I agree. As a newbie ChucKist, I have found Kassen to be a great source of help. Good sense of humor too. Kassen gets a little 3rd grade stick-on gold star from my desk drawer for his contributions to the ChucK community, lol!
What's this, a forum where people are nice instead of launching evil flame wars? I have new hope for humankind...
Inventor |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7682 Location: The Hague, NL
G2 patch files: 3
|
Posted: Thu Jan 17, 2008 3:39 am Post subject:
|
 |
|
Oh, wonderful! I never got stars or pictures in third grade, I was dyslexic which back then (I'm 30 now) in a small rural village meant "stupid" as there were no spell checkers. Sad but true.
Did you know I'm the official "sporks person"? I am, I have no idea what the title means or what responsibilities it brings but I am. Maybe I will need a ceremonial hat, like Ge has. _________________ Kassen |
|
|
Back to top
|
|
 |
Inventor

Joined: Oct 13, 2007 Posts: 5699 Location: San Antonio, Tx, USA
Audio files: 245
|
Posted: Thu Jan 17, 2008 5:49 pm Post subject:
|
 |
|
| Kassen wrote: | Oh, wonderful! I never got stars or pictures in third grade, I was dyslexic which back then (I'm 30 now) in a small rural village meant "stupid" as there were no spell checkers. Sad but true.
Did you know I'm the official "sporks person"? I am, I have no idea what the title means or what responsibilities it brings but I am. Maybe I will need a ceremonial hat, like Ge has. |
You know, I still don't have a good grasp on sporks. I understand that they are like separate processes and they are all synchronized together in time properly, but I don't have an intuitive feel for why you would use a spork. Vast this ChucK is, yes, with many wonders to explore! |
|
|
Back to top
|
|
 |
Antimon

Joined: Jan 18, 2005 Posts: 3097 Location: Sweden
Audio files: 174
G2 patch files: 76
|
Posted: Fri Jan 18, 2008 4:47 am Post subject:
|
 |
|
| Inventor wrote: | | Kassen wrote: | Oh, wonderful! I never got stars or pictures in third grade, I was dyslexic which back then (I'm 30 now) in a small rural village meant "stupid" as there were no spell checkers. Sad but true.
Did you know I'm the official "sporks person"? I am, I have no idea what the title means or what responsibilities it brings but I am. Maybe I will need a ceremonial hat, like Ge has. |
You know, I still don't have a good grasp on sporks. I understand that they are like separate processes and they are all synchronized together in time properly, but I don't have an intuitive feel for why you would use a spork. Vast this ChucK is, yes, with many wonders to explore! |
I don't spork off threads in the main ChucK process that much, I use sporks mostly like I would use threads in some other language. If you have a ChucK program that takes input (hid or otherwise), it's cool to read that input in a separate shred and therein manipulate global structures according to the input. If you have a sequencer, you can run that in a separate shred also, reading sequencer data from global and sending events as they happen to other shreds, that in turn take care of triggering sounds or envelopes. If you want to handle multiple voices, you can implement handling of a voice as a class, and then spork several instances of that class to handle several voices.
A nice thing about shreds is that the scheduling isn't preemptive, so you can be sure that while you're running a particular piece of code, no other shred will be activated that might mess with global data - you don't need to use monitors and stuff (like 'synchronize' does in Java). Also, the stable timer (IIUC) means that you can calculate the fraction between gating times in voice shreds and sequencer speed, and rely on that it is constant and effective.
/Stefan _________________ Antimon's Window
@soundcloud @Flattr @myspace A blog home - you can't explain music |
|
|
Back to top
|
|
 |
|