Jump to content

piku

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by piku

  1. ahahah well..

    it's funny that it seems some kink of monologue but...

    i finally found the final solution

    i set two variables:

    unsigned char timerled[64];

    unsigned char actualed;

    each time a note on i received , the corresponding led is set to ON and his timer is set to 0...

    then.. in the SR_Service_Prepare section:

    
    
    if ( ++actualed >= 64 ) {
    
        actualed = 0;
    
    
      }
    
    
    
    
    if ( ++timerled[actualed] >= 16 ) { 
    
    MIOS_DOUT_PinSet(actualed, 0);
    
     timerled[actualed] = 0;
    
    }
    
    
    

    so each led has a fixed duration...

    thanks to the forum anyway!! ahaha :tongue:

  2. mmmh .. ok

    i used some suggestions i found here:

    for now the leds of all my 8 shift registers are turned all off after 250 ms since the last note on received...

    i used a global variable called "timerled"

    ad every note on received it is turned to 0

    and everytime it reaches 250 all led are set to 0

    this is how the thing works

    
    void SR_Service_Prepare(void) __wparam
    
    {
    
    if( ++timerled >= 250 ) {
    
        timerled = 0;
    
    
     MIOS_DOUT_SRSet(0,0x00);
    
     MIOS_DOUT_SRSet(1,0x00);
    
     MIOS_DOUT_SRSet(2,0x00);
    
     MIOS_DOUT_SRSet(3,0x00);
    
     MIOS_DOUT_SRSet(4,0x00);
    
     MIOS_DOUT_SRSet(5,0x00);
    
     MIOS_DOUT_SRSet(6,0x00);
    
     MIOS_DOUT_SRSet(7,0x00);
    
    
      }
    
    
    }
    
    

    now.. i repeat i have no programming skills

    what i need now is a way to make the same work but for every single led

    i thougt i have to use a multiple variabe like " unsigned char timerled[64] "

    but do i have to repeat the "if" code 64 times????

    is there an intelligent way to do this?

    i mean .. how do i have to configure the code for a multiple variable in the SR_Service_Prepare section??

  3. i'm building a little light installation with leds controlled via midi

    i programmed the firmware following the C examples given by thorsten

    the problem is that sometimes some leds remain on due to bad midi transmission, since i'm using a wireless midi device (cme widi)

    i'd like to make the firmware able to set alwais the leds off after some seconds

    let's say .. a led doesn't receive his midi note off message, so it remain lighten, what i want some counter algorithm that turn a led off after 2 seconds.

    can someone give me saome examples i can follow?

    i have no programming skills!!

  4. Hi all.

    I'm building a quad sid box.

    i need to know if is possible to connect 2 midi in to the master core.

    Do i need an external midimerger?

    I'll try to explain: I've got an half broken midi controller... I want to put two octaves of keyboard and the mod and pitch weels directly inside the box (i found a nice and large box for electromedicals for 10€!!).

    the midi keyboard has inside an ATMEL controller that translates all the analog inputs (of the keyboard and the weels) in midi messages on the midi channel 1.

    i know that my idea is such a prehistoric solution  :-/ but... i'll set the sids to recive midi messages from the channels 2, 3, 4 and 5... while the incoming data from channel 1 (the internal keyboard) will be "routed" to the desired sid by the master core.

    Questions:

    Do i need another core to put two midi IN (the internal keyboard and the midi in) into the master core?

    what is the programming language for pics? How can i make a code that allows the master core to change the channel of the internal keyboard to 2, 3, 4 or 5, and to change the the cc's assign of the pitch and mod weel, or to change octave to the internal cannibalized keyboard??????

    the midi keyboard has a control fader that sends cc messages n7 (volume control), i could filter it's midi messages by the master core to control (for example) the cutoff or the resonace control of the SID n3 that recives on the channel 4...

    How can i add some switches connected to the master core to control the various modifications of the midi signal incoming from the channel 1? (example: a switch + - to change the octave or the midi channel)

    is it possible to program a procedure in basic or pascal or C language? Do i have to learn all about the assembly language?

    I think is enough  :)

    Exuse me for my english... i hope somebody will open my eyes!!!

    Thanks

  5. i think that a "stupid" answer is better than philosofy in this case...   8)

    * another answer: if i mount a 2 x 40 lcd on my quad-sid-box, there will be problems of firmware compatibility?

    * how a firmware is "written" on the pic? What kind of cable i have to use? how can i connect it with the computer?

  6. 2) what use is the midi out connection?

    3) Can i download the bankstick memory into mt computer by the midi out connection?

    4) Is possible to probram the wave tables without a comuter, directly by the control panel?

    If not, how can i program a "complex" wavetable texture and save it into the bankstick memory of the sid-box?

    5) where can i find infos about the "midi thru" circuit (tha i would like to insert in the sid box)?

    6) can each Sid chip play a different patch?

    7) have i to load patches on the sids everytime i turn on the machine? or is possible to keep a cofiguration for all the sids even when the machine is turned off?

    8) is possible to load a patch while playng? On the sidstation is possible...

    9) where exactly is located the "brain" of the 4chip-sid-box? in the PIC of the master core? Every pic of every core is programmed in the same way?

  7. Another questiooooon!!

    Besides the multigate i would like to insert in the box a mini mixer for the stereo outs...

    There would be 6 audio outs in the box i dream :P :

    4 outs are the direct mono outs of each sid

    and 1 stereo out is the main, in wich each signal coming from the sids passes thru the volume and pan knob to be placed in the stereo imagine.

    Can anyone tell me where can i find the "simple" circuits for a minimal mixer like the one i imagine?

    I think all the pan and the volume knobs (and even a possible "main volume" knob) could find placed on a modified and extended front panel...

    What are the complications about the alimentation of these other circuits?

    Is it possible to put an alimentation system directly inside the box???  ::)

    HOW?

  8. If you look inside a c64... you will notice that the metal cover of the board presents three little "tongues" (i don't know the word in english) that are in contact with che prinicipal processors and even with the sid chip.

    This is clearly an expedient to "refresh" the chips. So, i think that a security measure (like the metal cover) is necessary for a long life midibox sid! 8)

×
×
  • Create New...