TK. Posted November 12, 2005 Report Share Posted November 12, 2005 From the readme.txt:[tt]Clockbox V1.0 © 2005 Thorsten Klose (tk@midibox.org)===============================================================================This application sends a MIDI clock and outputs a 24ppqn signal at CORE::J14from 48 to 255 BPMIt is also capable of sending the MIDI song position to sequencers which areable to parse this message (F2 pos_L pos_H)The user interface consists of an encoder for BPM selection, a Stop/Pause/Play/Rev and Fwd button, and a LCD, which displays theselected BPM and the current song positionThe hardware is the same like for MIDIbox SID CS Step A (without the SID module)===============================================================================A precompiled binary is already part of this package: o project.hex (can be loaded into MIOS Studio) o project.syx (can be loaded into any SysEx upload tool)Following tools are required to recompile the code: o SDCC v2.5.0 o gputils o perlThe details are described under http://www.ucapps.de/mios_c.html===============================================================================Required hardware: o one MBHP_CORE module o one DINX1 module (or just a 74HC595 shift register + pull-up resistors) o one rotary encoder o 5 buttons o 2x16 LCD===============================================================================Configuration steps: o check the "general application settings" in main.h if changes are required for your hardware setup (normaly not) o check the encoder type in mios_wrapper/mios_tables.inc By default, the DETENTED2 type is selected o the application can be rebuilt with the "make.bat" file (type "make" in a DOS command shell)===============================================================================Description about the most important files: - mios_wrapper\mios_wrapper.asm and mios_wrapper\mios_tables.inc: The MIOS wrapper code and MIOS specific configuration tables - pic18f452.c: exports PIC18F452 specific SFRs - main.c: the main program with all MIOS hooks - mclock.c: the MIDI clock handlerThere are additional .h files for all .c files which containgeneral definitions and the declaration of global functions/variablesThese .h files must be included into the program parts whichget use of these globals===============================================================================[/tt]Download: http://www.ucapps.de/mios_download.htmlInterconnections: http://www.ucapps.de/mios/clockbox.pdfLCD view:Btw.: this application includes the basics to create a C based sequencer or arpeggiator!Have fun! :)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Captain_Hastings Posted November 16, 2005 Report Share Posted November 16, 2005 Cool! Another one on my build list... :) Quote Link to comment Share on other sites More sharing options...
DrBunsen Posted November 26, 2005 Report Share Posted November 26, 2005 This is a very cool little implementation!Reluctant as I might be to shout "Hey Thorsten! How about adding Impossible Feature X??", would it be difficult to add in the shuffle function from the SEQ? Whether added by you or by the user. Because a DIN sync clock with shuffle would rule ...It would also be nice to be able to put out 48 ppq (Korg) sync and 4 ppq (16 pulses per bar), or optionally to read clock from any of these sources or MIDI and output to any other. Quote Link to comment Share on other sites More sharing options...
TK. Posted November 27, 2005 Author Report Share Posted November 27, 2005 I will keep this in mind for the case that I feel boring ;-)Shuffle function: the outgoing clock has to be delayed with the same patterns used in MBSEQ48ppqn: timer has to be invoked with double frequency, 48ppqn pulse has to be generated on each tick, MIDI clock has to be sent on each second tick4 ppqn: requires a clock dividerRead clock and convert it: similar to MBSEQ (must work like a PLL (phase locked loop))Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
DrBunsen Posted November 27, 2005 Report Share Posted November 27, 2005 Btw.: this application includes the basics to create a C based sequencer or arpeggiator As usual, TK, your timing is perfect, pardon the pun. I've been looking into building a simple 16 step sequencer with some borrowed MIOS code recently.I've started a new thread to discuss it. Quote Link to comment Share on other sites More sharing options...
TK. Posted November 27, 2005 Author Report Share Posted November 27, 2005 Fine - so just call your functions from MCLOCK_Tick() in mclock.c - it contains all events you need to control a sequencer (Start/Stop/Pause/Clock) :)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
sneakthief Posted February 4, 2006 Report Share Posted February 4, 2006 I moved my question here: http://www.midibox.org/forum/index.php?topic=6122.0cheers,michel Quote Link to comment Share on other sites More sharing options...
Rigo Posted July 26, 2006 Report Share Posted July 26, 2006 Is it possible to have two midi outs using the LTC module to sync two Laptops to the midiclock box? Quote Link to comment Share on other sites More sharing options...
raphael Posted July 26, 2006 Report Share Posted July 26, 2006 Is it possible to have two midi outs using the LTC module to sync two Laptops to the midiclock box? Yes, no problem ;D Quote Link to comment Share on other sites More sharing options...
sneakthief Posted July 26, 2006 Report Share Posted July 26, 2006 or you can live life on the wild side and connect two midi outputs-jacks to the single output on the core board :) i've been using this technique successfully for a while now, but it's not recommended fot all situations and may not work with all midi devices.cheers,michel Quote Link to comment Share on other sites More sharing options...
Rigo Posted July 28, 2006 Report Share Posted July 28, 2006 or you can live life on the wild side and connect two midi outputs-jacks to the single output on the core boardi've been using this technique successfully for a while now, but it's not recommended fot all situations and may not work with all midi devices.Do you think it will work with two laptops each using a 2x2 m-audio usb midi interface? Quote Link to comment Share on other sites More sharing options...
sneakthief Posted July 28, 2006 Report Share Posted July 28, 2006 i don't see why not - give it a try!i would imagine that the biggest concern in your case might be midi-data drop-outs. let us know how it works out for you. Quote Link to comment Share on other sites More sharing options...
bionix Posted August 10, 2006 Report Share Posted August 10, 2006 hmm. i made some nice connections over lan to sync and use 2 pc's and 2 laptops (pc's are just my vst hosts) via ipmidi (nerds.de) and of course some midi cables ;-) but it seems that ipmidi isn't able to send/receive clock data.... :-( now i wanna build the little clockbox to kill that problem ;) Quote Link to comment Share on other sites More sharing options...
mess Posted August 10, 2006 Report Share Posted August 10, 2006 Hi Bionix,I did some tests quick with midi over lan yesterdayand midi sync works using tobybear's midibag toolkit and midi yoke.It seems to work ok...my test setup:pc1fruityloops (enable send sync)-> midiyoke -> net2midpc2mid2net -> midiyoke -> fruityloops (enable midiyoke as controller)I used fruitystudio for a quick test but this should also work for other hostson the other hand a clockbox is a nice alternative, no network headaches :-) Quote Link to comment Share on other sites More sharing options...
TK. Posted August 13, 2006 Author Report Share Posted August 13, 2006 The clockbox got a new "multi MIDI Out option" based on an idea of Braintu.It allows to enable/disable the MIDI clocks of up to 8 MIDI clock slaves (sequencers, drum machines, synths) seperately and in a synchronized manner (clock will be enabled/disabled exactly on the next beat)[tt]Update V1.1:A "multi clock out" option has been added which supports 8 additionalMIDI Outs. The clocks which are sent can be enabled/disabled with 8 seperate play and stop buttons. Changes will be synchronized tothe beat (1/4 note)This option is based on an idea of Braintu, his full concept can befound under http://www.midibox.org/dokuwiki/doku.php?id=midimasterclockOnly the stop/play function has been implemented yet, he will continueon this project.Technical details about this option: the 8 MIDI outs are available atJ5 of the core module. This port is normaly used as analog input. Inorder to ensure, that no short circuit happens if a user uploads thisapplication on a MIDIbox which has pots or AIN modules at J5, theMULTI_CLOCK_OPTION flag in main.h is disabled (0) by default.It has to be set to 1 to get the MIDI outs workingMIDI events are sent over these outputs with the "bit banging" method.(see mclock.c, MCLOCK_SendMultiPort)The enabled MIDI clock channels are displayed with 8 LEDsThere is a special schematic which describes the additionalconnections: http://www.ucapps.de/mios/clockbox_multi.pdf[/tt]Download: http://www.ucapps.de/mios_download.htmlInterconnections: http://www.ucapps.de/mios/clockbox_multi.pdfBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted August 14, 2006 Report Share Posted August 14, 2006 Awesome, thanks TK and braintu!I've been watching that project in the german forums, I was wondering what was going on ;) Quote Link to comment Share on other sites More sharing options...
sneakthief Posted August 18, 2006 Report Share Posted August 18, 2006 hey, that's a great implementation! i'm quite impressed.regards,michel Quote Link to comment Share on other sites More sharing options...
Modul Posted August 22, 2006 Report Share Posted August 22, 2006 Yeah! Very cool and useful guys.. And could someone build a custom clockbox for a private order for selling it...we really need one..but we can buld it because we don't have any experience.. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted August 23, 2006 Report Share Posted August 23, 2006 I think you would need to get TK's approval, selling would be commercial use. You could always use a multi-port MIDI interface and route midi clock out of your mac/pc. This could be done for a similar price... But a MIDIBox is not so hard if you are willing to spend a little time... So like they say, time is money... You just have to choose which one you will spend ;)Disclaimer: No guarantees. Mac/PC timing may leave you wishing you had built the ClockBox ;D Quote Link to comment Share on other sites More sharing options...
Modul Posted August 23, 2006 Report Share Posted August 23, 2006 We need an external hardware device.. Not a routed signal from a pc/mac. And what's the worst we don't have any time at all to spend=) So we have to spend money you see.. So Quote Link to comment Share on other sites More sharing options...
stryd_one Posted August 23, 2006 Report Share Posted August 23, 2006 We need an external hardware device.. Not a routed signal from a pc/mac.Why's that? The end result is the same, with the exception of sharper timing, but beggars can't be choosers ;)Anyway you could get any device that will generate midi clock and a hardware MIDI router...The midibox is a Do-It-Yourself project so if you don't have any spare time it's probably not really suited to your needs :(You should quit your job and become a full-time midibox addict ;)Edit: this talk should be taken to 'sale requests' forum and not continue in this 'News' thread. Quote Link to comment Share on other sites More sharing options...
Modul Posted August 23, 2006 Report Share Posted August 23, 2006 Thanks then.. :'( We'll try to find another solution.. We have no time at all to build it..because it is needed for a work which couldn't be delayed at all.. so that's a pity... :( Quote Link to comment Share on other sites More sharing options...
ZiggY!! Posted November 15, 2006 Report Share Posted November 15, 2006 would it be hard to add a decoder to control a divider/multipler of the BPM per clock output? I guess it doesn't have to go that far, perhaps x4 each way to get turn one beat into a whole note in one direction, and to turn a quarter note into a sixteenth note in the other direction? Quote Link to comment Share on other sites More sharing options...
TK. Posted November 15, 2006 Author Report Share Posted November 15, 2006 From my point of view this project is finished, it was just a toy, and I don't use it by myself...However, this project is open source, maybe somebody else feels motivated to program such a feature?Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
mess Posted November 16, 2006 Report Share Posted November 16, 2006 Hi Ziggy,I will post an example tomorrow (only tempo division),do you need the features from v1.1? (eg MTC support)using the v1.0 makes it a bit easier to code :) 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.