Alkex Posted February 2, 2006 Report Share Posted February 2, 2006 Hi, I am planning on customizing my midibox sid and would like to generate various midi signals (ccs, midi notes, clock etc) using the 6 lfos that are built into the Mios_Sid application.I therefore need to be able to read the 6 lfo values at any time, convert them to 7bit and send them to tx buffer.Please could someone point me to the 6 variables and need to work on? any ideas on converting them to 7bit (1-127 range)?Thanks in advance! :)Alex Quote Link to comment Share on other sites More sharing options...
TK. Posted February 5, 2006 Report Share Posted February 5, 2006 Hi Alex,the LFO values are 16bit values, which are stored in a special structure. Without loosing too much words (because I think that the data structure is obvious): with movff SID_LFO1_BASE + SID_LFOx_RVALUE_H, WREGyou will copy the high byte of the LFO1 output value into the working registerwith "clrc" and "rrf WREG, W" you can shift it to the right in order to get a 7bit value, which could be transmitted via CCBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Alkex Posted February 8, 2006 Author Report Share Posted February 8, 2006 Thanks Thorsten,now I can have a nice horizontal led visualisation of the lfo rate! ;DThe next question is obviously how to grab env 1 and env 2 values?(of coarse, i'll have a try first) Thanks!BestAlex Quote Link to comment Share on other sites More sharing options...
TK. Posted February 8, 2006 Report Share Posted February 8, 2006 Hi Alex,metering the modulation outputs is such a cool idea, that I couldn't resist to built this into the v1.7303 by myself! :-)See http://www.midibox.org/forum/index.php?topic=6098.msg37721#msg37721In cs_menu_matrix.inc you will find the offsets of LFOs and ENVsBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Alkex Posted February 10, 2006 Author Report Share Posted February 10, 2006 Hi Thorsten,I'm proud to have a bit of my brain built into your excelent SID project :DI use the feature to animated 8 leds in a horizontal "night rider" style to indicate the selected lfo rates.My midibox Sid has a modular approach with software handled patch sockets to simulate connections between voices, lfos, enveloppes etc using patch leads.I still have some bodywork to finish (lcd, pitchbender), and some software handlers to optimize but here's a preview:I really hate having to sit in front of a computer screen to make music, thats why I'm trying to make my midibox synthesizers as independant as possible. This one will eventually have a little amp and speakers so it can be played in a computer-free zone! ;Dthanks again for making our beloved projects a reality!Best,Alkex Quote Link to comment Share on other sites More sharing options...
TK. Posted February 11, 2006 Report Share Posted February 11, 2006 Hi Alkex,great one! :)(Btw.: in my implementation, I used vertical bars, because this matches better with the lables of a common MIDIbox SID panel)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.