Jump to content

dexter2010

Members
  • Posts

    1
  • Joined

  • Last visited

dexter2010's Achievements

MIDIbox Newbie

MIDIbox Newbie (1/4)

0

Reputation

  1. Hi Tk and thank you for your suggestion. Is not possible for me to compile with the code you gave me because MPLAB return to me with this error: MAIN.ASM 289 : Symbol not previously defined (this_value) something like the "this_value" not recognize... This is the entire code ( related to pot section) USER_AIN_NotifyChange JUMPTABLE_2BYTES 2 ; (2 entries because in this trying we use only 2 unmuxed AIN) rgoto Function_for_WREG_00 ; AIN 0 rgoto Function_for_WREG_01 ; AIN 1 rgoto AIN_END rgoto AIN_END rgoto AIN_END; rgoto AIN_END; rgoto AIN_END rgoto AIN_END ;;;;;;;;;;;;************************************** ; ;;;;;;;;;;;;************************************** Function_for_WREG_00 ; 0-127_AIN 0 movlw 0xb0 call MIOS_MIDI_TxBufferPut movlw 0x53 call MIOS_MIDI_TxBufferPut movlw 127 btfss this_value, 6 ; bit 6 is set on values >= 64 movlw 0 call MIOS_MIDI_TxBufferPut Function_for_WREG_01 ; 0-127_AIN 1 movlw 0xb0 call MIOS_MIDI_TxBufferPut movlw 0x54 call MIOS_MIDI_TxBufferPut movlw 127 btfss this_value, 6 ; bit 6 is set on values >= 64 movlw 0 call MIOS_MIDI_TxBufferPut AIN_END I can't understand where's the error... Thank you very much! Bye Dexter
  2. Hi I'm trying to porting a MIOS application wrote in C to ASM. All work just done but i need an help on this: In my hardware I'm using a 2 position switch on an AIN unmuxed and it is working good with C allowing it to assume only value 0 or 127. I'm not able to translate in ASM. My C code ( in pot section ) is: { // Only allow value 0 or 127 this_value = this_value < 63 ? 0 : 127; // If valid, send CC out MIOS_MIDI_TxBufferPut(0xb0); MIOS_MIDI_TxBufferPut(53); MIOS_MIDI_TxBufferPut(this_value); } Any help to make the same thing in ASM under the section USER_AIN_NotifyChange? In this moment I'm using the mios_table.inc for specify the midimessages of the pots. thank you very much. Dexter
  3. Yes thank for reply I already know qbas 32x32 but that application is wrote totally in asm, but sm_c_example2_v1c, in my opinion is more powerful and let me do modification in easier way. That's because only the matrix driver ( sm_fast.asm ) is wrote in asm and the main program ( main.c )is in C. In this way, when I have the sm_fast.asm expandend ( because I need more that 64 switches )for example from 8x8 to 16x16, changing code in main.c for example: ORIGINAL CODE MIOS_MIDI_TxBufferPut(0x90); MIOS_MIDI_TxBufferPut(pin); MIOS_MIDI_TxBufferPut(value ? 0x00 : 0x7f); As result I can simply change the midi messages putting the one I want. 32x32 is not so easy, there's velocity and other things very difficult! bye Andrea
  4. Hi I'm searching a way for expand the original sm_fast.asm that is 8x8 matrix to a 8x16 or 16x16 (obviously adding din and dout module) anyone can help me to modify it? Thanks in advance. :smile: bye
  5. Hi to all the forum I'm here after 3 years of stop! I'm very happy about the news on midibox ( stm32 and so on ) keep the community increase! DIY passion bring me another time! After all this years I'm considering build a midi controller for an old keyboard I get from a friend of mine. Keyboard is from an old Italian manufacturer called CRB, it is not working but I'm considering to transform it to a midi controller. This is my first and only problem. All keybed are arranged in matrix 8x8 and I find that the application sm_C_example2_v1c work perfectly for me! ( I don't need velocity or so on...)just for one keyboard. I have only one pic core but a lot of din dout shift registers, so I wonder if is it possible to increase the application for manage 2 keyboards: in fact 8x8 uses only one din and one dout and I have available 4din and 4dout ( 2 complete din and dout module!). I already look at 32x32 code and so on but they are coded with old toolchain and all in ASM, on the other hand sm_c_example2_v1c is easy because the code in ASM only manage the matrix driver and the main.c manage midimessages is in C and so I can reuse the main.c for adding pots or for adding other buttons for sending ( for example ) CC instead of note ON OFF messages. Adding one 74hc165 and one 74hc595 can change matrix from 8x8 to 16x16 but this involved changing the ASM code: how can I do it using the same app? Any help will be appreciated! bye! Andrea
×
×
  • Create New...