electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
MIDI Data from sequencers (better using OSC?)
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [10 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Dr. Spankenstein



Joined: Mar 03, 2007
Posts: 136
Location: Cambridge
Audio files: 1

PostPosted: Sun Jan 13, 2008 10:53 am    Post subject: MIDI Data from sequencers (better using OSC?) Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7682
Location: The Hague, NL
G2 patch files: 3

PostPosted: Mon Jan 14, 2008 6:41 am    Post subject: Reply with quote  Mark this post and the followings unread

Google "midi loopback driver".

Commercial sequencers tend not to support OSC.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Spankenstein



Joined: Mar 03, 2007
Posts: 136
Location: Cambridge
Audio files: 1

PostPosted: Mon Jan 14, 2008 11:56 am    Post subject: Reply with quote  Mark this post and the followings unread

Kassen you are a star! Very Happy
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7682
Location: The Hague, NL
G2 patch files: 3

PostPosted: Mon Jan 14, 2008 12:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

A star for such a small post? That was easy!

Smile

Happy to have been of asistance.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Spankenstein



Joined: Mar 03, 2007
Posts: 136
Location: Cambridge
Audio files: 1

PostPosted: Wed Jan 16, 2008 11:19 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7682
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed Jan 16, 2008 1:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

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 Smile
_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor



Joined: Oct 13, 2007
Posts: 5699
Location: San Antonio, Tx, USA
Audio files: 245

PostPosted: Thu Jan 17, 2008 12:14 am    Post subject: Reply with quote  Mark this post and the followings unread

Dr. Spankenstein wrote:
Kassen you are a star! Very Happy


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
View user's profile Send private message Send e-mail
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7682
Location: The Hague, NL
G2 patch files: 3

PostPosted: Thu Jan 17, 2008 3:39 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail Visit poster's website
Inventor



Joined: Oct 13, 2007
Posts: 5699
Location: San Antonio, Tx, USA
Audio files: 245

PostPosted: Thu Jan 17, 2008 5:49 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail
Antimon



Joined: Jan 18, 2005
Posts: 3097
Location: Sweden
Audio files: 174
G2 patch files: 76

PostPosted: Fri Jan 18, 2008 4:47 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [10 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Niio1

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use