Jump to content

cimo

Programmer
  • Posts

    1,774
  • Joined

  • Last visited

Everything posted by cimo

  1. any chance to sniff the code? (for educational purposes)
  2. cimo

    Fe de erratas

    hola esta errata ya ha sido comunicada a TK. simone
  3. //////////////////////////////////////////////////////////////////////////// // This is an assembly optimized function which scales a 7bit value between // a minimum and maximum value ///////////////////////////////////////////////////////////////////////////// unsigned char Scale_7bit(unsigned char value, unsigned char min, unsigned char max) { // scaled value is (<8-bit random> * ) >> 8 PRODL = value << 1; // 8bit value PRODH = max-min+1; // range __asm movf _PRODL, W mulwf _PRODH, 0 __endasm; return min + PRODH; } ///////////////////////////////////////////////////////////////////////////// // This function is called by MIOS when a pot has been moved ///////////////////////////////////////////////////////////////////////////// void AIN_NotifyChange(unsigned char pin, unsigned int pin_value) __wparam { unsigned char value; // scale 7bit value between min and max boundary value = Scale_7bit(MIOS_AIN_Pin7bitGet(pin), // converted to 7bit 0x00, 0x7f); // a pot has been moved, send CC# at channel 1 MIOS_MIDI_TxBufferPut(0xb0); // CC at channel 1 MIOS_MIDI_TxBufferPut(CimosCCvariable); // pin number corresponds to CC number MIOS_MIDI_TxBufferPut(value); // don't send 10bit pin_value, // but 7bit value } this is the code atm, i ve been adding dividing etc etc numbers here and therebut i can t follow the logic path of the code yet, it s getting fun though.
  4. i ve been tinkering around with the following for a little while, just to get used to the new C enviroment but i couldn t really accomplish what i am trying to do. I need to scale (as to expand) the cc sent by a pot which is atm ranging from 42 to 75. Is this code ok also for expanding the range? unsigned char Scale_7bit(unsigned char value, unsigned char min, unsigned char max) { // scaled value is (<8-bit random> * ) >> 8 PRODL = value << 1; // 8bit value PRODH = max-min+1; // range __asm movf _PRODL, W mulwf _PRODH, 0 __endasm; return min + PRODH; } there are still too many things i need to understand.. ::) simone
  5. but this seems to have its own protocol as well, anyway i am up for anything coming for a future implementation of wireless midi communication, although atm the easiest thing to do is to send wireless usb with a pc host.
  6. cimo

    My Plan!

    poor ross ::)
  7. it s important in these case to know how to smile whatever it is happening... yes handshaking, no handshaking with RF afaik
  8. I am not sure but i think that MIDI can t be safely transmitted/received without encapsulating it in another protocol which will take care of error checks.I mean you don t want B to played when you play A right? Someone could say a word about this? simone
  9. cimo

    My Plan!

    from main.asm ; For MIDI activity monitor: define the DOUT pins for the Rx and Tx LED #define DEFAULT_MIDI_MONITOR_ENABLED 1 ; if 1, the Tx/Rx LEDs are enabled #define DEFAULT_MIDI_RX_LED 0x40 ; DOUT SR#9, pin D0 #define DEFAULT_MIDI_TX_LED 0x41 ; DOUT SR#9, pin D1 simone
  10. quoting Sahira : translation from bubbafish:
  11. .. my own experience.. be really really careful with this kind of switches, especially if you re doing some intensive gigging or if you re just wild with your machines, most switches won t last too long under "normal" music abuse, that s not the case if you ll be at home gently creating beats on your seq. I think it is actually time to report experience with the different producers so to have an overview for future reference. simone
  12. ..as far as i understand i cant do that without a cs right? ..if that s the case would anybody with a cs send me an ensemble with patches so i can control 4 stereo sounds at the same time, maybe in 4 different channels, i d like to change those 10KR resistors used to mix the signals before the headphone jack.(and hear how it sounds like 8 c64 all together!) please! ;) simone i was having a look at the CS_DIN wiring pdf, thinking if it was worth soldering a few diodes and buttons to access the lcd while waiting for the parts for the cs.i d need the 5 menu buttons and encoder (or left right), am i right?
  13. cimo

    1 waldorf knob

    i would buy 1 albs waldorf knob of any of the following color: red, grey, white, transparent not now but i ll be kinda desperate in a few weeks simone
  14. ok it works now i can control filter and resonancem i was wonderins if it is possible to switch among the 4 engines via midi, i ve also connected a spare clcd (thanks jidis) simone
  15. sahira6582
  16. sorry but atm only phone camera you see the vias have been moved out of the buttons pads so they won t interfere, all holes (via, pads,etc) are 0.6mm to help routing the drill bits.The holes for those little pins of the Sparfuns are 3mm (i ve cut off a full line of them, where the pads for the DIL sockets are), holes for the mounting screws are 2.5 mm.Boards etched with PnP Blue (i use a couple of paper sheets under and above the pcbs when ironing to "spread" the pressure evenly, sand with 600 and treat with isopropil), 50% muriatic acid and 50% peroxide 30vol, it etches in about 30 seconds.Finally the board was treated with cool-amp. simone
  17. cimo

    thanks TwinX

    what about www.whothef*ckisjimp.org ? ;D ;D congratulation mate!
  18. no way without a computer, as long as you don t want to build a usb host with implemented midi protocol and interface which is going to be far more difficult and expensive than buying a new midi keyboard simone (who knows maybe you are lucky and inside the usb interface is a separate circuit apart from the midi device, do you know if there are older version of this keyboard with no usb? try to open it, good luck)
  19. ok connecting an lcd is no trouble.. let s warm up the iron! simone
  20. cimo

    My Plan!

    no & no simone (who the f*ck is cimo?)
  21. .. i also don t like having to ask same question over and over but after reading all possible docs about nrpr, tried all possible combinations on my MK i was not able to use it. I understand that with 99 and 98 i can choose 1 parameter, ie the filter (yeah the filter!) can be choosen with msb 04 and lsb 00 (for both channels), that means setting cc99 to 4 and cc98 to 0.Therefore i can use cc06 to enter values. Now in my MK i can assign nrpr to a single fader, but then how can i choose the selected parameter? i don t really understand tx simone
  22. hi and welcome you should see my budget for electronics for the last 6 months and my annual income ! the reason why so many producers are using Mackie Control (Behringer as well) is that Mackie s released it, don t expect anything like that anymore though.Still waiting for somebody to crack the C4 (if this should violate the copyrights etc etc ::) simone PS: miscellaneous is the hype don t worry
  23. hi yes i ve checked the examples but i can t find the offset code, i think i will have a look at the ACsensorizer
  24. cimo

    *whack*

    .. now we are all wondering luke... was it an electro set?
  25. yep (tx TK for "forcing" me to C, i can see how easily :P you can create your own application and start toying around with it wihtout being a C geek, tx AC for support on setting up OSX and the wiki stuff, tx Jimp for end user support) simone
×
×
  • Create New...