Jump to content

Rio

Members
  • Posts

    712
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by Rio

  1. i don't know, whether it is solved in the new build, but in Build69, there was an graphical bug in record mode.. if i record notes and rotate the Rotary Encoder for Steps at this time... the visuals of the "record screen" are drawn into the "step sequencer" screen. It's only a visual bug. But we have to check this out in new version.. Greets Rio.
  2. yes thxs... i'll do that at evening.. ;) Greets Rio.
  3. mhh... background: i've implemented a timer function for notifyevent of pressing keys from sm_matrix in my application, because i want increase/decrease CC values by pressing a key til i release the key in realtime. It's functional without sending data, but if i used MIOS_MIDI_TxBufferPut at every step (50ms) - different errors occurs -> til hanging / crashing of application at random time, or wrong visuals on LCDs.. :-\ what can i do? PS: What is about sending BPM-values? Mhh.. seems that they can be transfered in this time or i'm wrong? Are you sure that 50 ms is to less?
  4. i init the timer with 50 ms value: MIOS_TIMER_Init(0x03,62500); is that time to short to proceed 3x MIOS_MIDI_TxBufferPut?
  5. melody is so nice ;D funny...
  6. At my last changes on program, where i execute 3 MIOS_MIDI_TxBufferPut(..); functions in a Timer Intervall, i got critical states in programm... So after a duration of worrking my program crashes, hangs or does some other programm code/states :o after a time... :-X maybe it's to time critical or txbuffer is overrun... i don't know.. Can anyone help or knows a solution for that behavior? Greets Rio.
  7. ??? Beinhaltet der PIC18f eigentlich ein 8Bit oder 16Bit Prozessor? Grüße Rio.
  8. Rio

    Sin Fkt.

    you mean this file: sid_lfo_table.inc ?
  9. thx, but this infos is well-knowed. I thought unsigned must be a datatype (or a flag), because it's normal to do declarations like this (maybe in c++): int int a; // (int * int) ... so i thought i can use unsigned as a one bit datatyp (flag) too: unsigned a; // there is no compiling error! ..but maybe it's same like unsigned char a;, because the smallest alloced datatyp is an byte in memory, right? So i only have to use "bitfields" in structures, i'm right? but i have to use always 8 BIT, never less and all unused i've to declare without a name.., correct? Can i use 16 BIT Bitfield too in a struct?
  10. Rio

    Sin Fkt.

    I'll take a look into ;) i don't know how tk did it on MBSID Application? Does he used a lookup table too or a function for that?
  11. thx and sorry for german post... yes, seems that this is special at SDCC-Compiler. But i most wonder about the wasted memory if i initialise the variables at deklaration too....and they are always 0. So SDCC will init all variables at 0, i'm right? So i'll only need to initialise variables in init function, if values are different from 0, correct?
  12. also dann ist dieses unsigned nicht nur ein bool-wert, sondern ein bitfeld, wenn man das durch ein ":" und einer Zahl dahinter deklariert? geht sowas in C++ auch? hab ich noch nie gesehn... geht sowas auch ohne eine Struktur oder Union? ich glaub da kam bei mir eine fehlermeldung: unsigned test:2;
  13. Ist es möglich eine Sinus funktion zu verwenden? Wenn ich die math.h verwenden will kommt immer das: sdcc: Calling preprocessor... sdcc: Generating code... ========================================================================== Linking project error: missing definition for symbol "_sinf", required by "_output\main.o" ERROR! Process terminated with status 1 (0 minutes, 3 seconds) 0 errors, 0 warnings anscheinend wird das nicht in der LIB von TK unterstützt. gibt es eine Lösung?
  14. Hi, für meine Anwendung benötige ich globale Variablen, die mit einem bestimmten Wert initialisiert werden, und genau da liegt mein Problem: wenn ich z.B. das global definiere: unsigned char test = 2; dann wird in meinem Programm die Variable "test" trotzdem mit 0 initialisiert. Versteh ich nicht. Anhand meiner Tests wird anscheinend alles auf 0 initialisiert und ich muss per hand in der Init() Fkt. die daten nochmal initialisieren (das frisst natürlich speicher)...oder mach ich was falsch? Übrigends wird mein Programm auch größer, sobald ich eine Initialiserung in der Deklaration vornehme...obwohl ja hier die Werte auf 0 bleiben.. Kann mir das jemand erklären und was wäre nun die günstigste Variante? brauch man eigentlich dann werte, die mit 0 initialisiert werden sollen, nicht mehr explizit zu initialisieren, weil das automatisch geschieht? PS: Ist eine Initialisierung von Variablen in der Deklaration nur in C++ und nicht in C möglich?
  15. besides: is the xxx_cc_implementation.txt a describtion for incoming or outgoing Commands of a application?
  16. first, thxs for all fast replies... :) @moxi: yes same thought... maybe there will be used channels and last note numbers stored... @audiocommander: do you mean this file?: mbseqv3_cc_implementation.txt I don't know, but this tells me nothing about how seq stops all notes on channels to other devices.. and watching source, sadly i can't interpret ASM-Code .. ;) Greets Rio.
  17. it could be interessting how tk handle this in his SEQ app... if i press stop all channels are turned off (seems without much effort) .. the MBSID device too.
  18. mhh... :-\ tss.. if that is on device to device different ... than i've to think about another technic in my app. ;)
  19. it didn't work with your code too...! i've tested it yesterday.. :-\ the osc's of sids are playing further the last tones... i have tested also with a midi channel 1 command before command 120 or 123 MIOS_MIDI_TxBufferPut(144); .. .. but here the results are the same, nothing changed for instr. in channel 1.
  20. I've tested the AllNotesOff and AllSoundsOff Midi Messages which i founded in MIDI documention on several sides: MIOS_MIDI_TxBufferPut(123); MIOS_MIDI_TxBufferPut(0); or MIOS_MIDI_TxBufferPut(120); MIOS_MIDI_TxBufferPut(0); but nothing happens sadly. Any idea? e.g. in my tests, Midibox SID doesn't release the played notes. It would be interessting, how TK handle a NoteOff for all played notes in SEQ-Application by pressing the STOP Button. Greets Rio.
  21. no no, i'm sure that occurs only and ever on C-6 note, tested it with different input devices...
  22. Hi Tk, during i'm testing, it seems i found one bug: In record mode, if i send a C-6 Midinote, it will only register that for a minimal time. I don't know, if thats really a bug... (i only notice that on C-6) Best regards, Rio.
  23. if a const multi array are declare longer than the defined content, then at compiling.. Pc will fill memory endless til crash... :-\ const unsigned char test[2][20] = { "nur 18 lange Array", "nur 18 lange Array" }
  24. @audiocommander: thx again, yes i know bitshifting for multi/div from 6501 ASM :) @stryd_one: i don't find any source from SDCC, only headers for that. There are many *.libs for different processor types in include directory of SDCC, but i don't know what i have to do.. Greets, Rio.
×
×
  • Create New...