Jump to content

Phatline

Members
  • Posts

    1,285
  • Joined

  • Last visited

  • Days Won

    72

Everything posted by Phatline

  1. this line stops my lcd from reacting and nothing will be written: for(i=0; i<256; i++){ //16bit pitchbend to 2x8bit -saveable with Writebuffer PB8[0][i] = PB[track][i] & 0xff; PB8[1][i] = PB[track][i] >> 8;} when used in: for (track=0; track<8; track++){ //count thru all tracks for(i=0; i<256; i++){ //16bit pitchbend to 2x8bit -saveable with Writebuffer PB8[0][i] = PB[track][i] & 0xff; PB8[1][i] = PB[track][i] >> 8;} MUTEX_SDCARD_TAKE; //Write to File sprintf(filepathS, "sq/%d-%d.sq", track, SongNrStor*4); FILE_WriteOpen (filepathS, 1); FILE_WriteBuffer((u8 *)file_typeBank, 4); //"SQ01" = 4 Positons FILE_WriteBuffer((u8 *)CC_SD, 32); //Track Variables like Looplenght FILE_WriteBuffer((u8 *)Sequence[track], 2048); //u8 Sequence[8][256][8] FILE_WriteBuffer((u8 *)PB8, 512); //2x256 FILE_WriteClose (); MUTEX_SDCARD_GIVE; //SD-Card is now free 4 apbess } , if i delete this lines: all files are written/loadet fine, maybe the bitshift takes to long... or sd access is to slow... or code is just waste...
  2. hm having troubles by Reading the HWORD - compiler error: make (im Verzeichnis: /home/...) rm -f project.hex Creating object file for app.c app.c: In function 'SD': app.c:857:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ------------------------------------------------------------------------------- Application successfully built for:.... app.c:857:40 isthis line: for(i=0; i<256; i++){FILE_ReadHWord ((u16 *)PB[track][i]);} //read Pitchbend u16 values directly ?? u16* and u16 by using this code //STORE if((job == 2) && (track == 8)) {//Store all Data- whole Program-Change-Patterns MUTEX_SDCARD_TAKE; for (track=0; track<8; track++){ //count thru all tracks //Write to File sprintf(filepathS, "sq/%d-%d.sq", track, clip); FILE_WriteOpen (filepathS, 1); FILE_WriteBuffer((u8 *)file_typeBank, 4); //"SQ01" = 4 Positons FILE_WriteBuffer((u8 *)CC_SD, 32); //Track Variables like Looplenght FILE_WriteBuffer((u8 *)Sequence[track], 2048); //8Tracks, 256Steps, 8NotePolyphony for(i=0; i<256; i++){FILE_WriteHWord(PB[track][i]);} //write Pitchbend u16 values directly //FILE_WriteBuffer((u8 *)PB8, 1024); //2x8Bit Pitchbendvalue...2 x 512 Steps= 1024 Blocks FILE_WriteClose (); } MUTEX_SDCARD_GIVE; } //LOAD if((job == 1) && (track == 8)) {//Load all Data- whole Program-Change-Patterns MUTEX_SDCARD_TAKE; for (track=0; track<8; track++){ //NOTE-Data of Clip sprintf(filepathL, "sq/%d-%d.sq", track, clip); FILE_ReadOpen (&midifile_fi, filepathL); FILE_ReadBuffer((u8 *)file_typeBank, 4); FILE_ReadBuffer((u8 *)CC_SD, 32); // ALL OTHER VARIABLES are saved in this ARRAY (CC_SD[128]) FILE_ReadBuffer((u8 *)Sequence[track], 2048); ////8Tracks, 256Steps, 8NotePolyphony u16 i = 0; for(i=0; i<256; i++){FILE_ReadHWord ((u16 *)PB[track][i]);} //write Pitchbend u16 values directly FILE_ReadClose (&midifile_fi); } MUTEX_SDCARD_GIVE; } }
  3. hi save my patches with FILE_WriteBuffer like this: // 16Bit Pitchbend-value to 2x8Bit value - to get a saveable format PB8[0] = * ((unsigned char *)&PB[track]); //low byte PB8[1] = * ((unsigned char *)((&PB[track])+1)); //hi byte //Fill CC-Array of Clip CC_SD[0] = clip_is_virgin; CC_SD[1] = Rythm; CC_SD[2] = Loop_Length[track]; CC_SD[3] = BPM; CC_SD[4] = SetDecayTime[track]; //Note-Data of Clip sprintf(filepathS, "sq/%d-%d.sq", track, clip); //First Pattern --- will be later copied 511 times! sq/8-512.pb FILE_WriteOpen (filepathS, 1); FILE_WriteBuffer((u8 *)file_typeBank, 4); //"SQ01" = 4 Positons FILE_WriteBuffer((u8 *)CC_SD, 32); //Track Variables like Looplenght FILE_WriteBuffer((u8 *)PB8, 512); //2x8Bit Pitchbendvalue x 256 Steps = 512 Blocks FILE_WriteBuffer((u8 *)Sequence[track], 2048); //Track, 256Steps, 8NotePolyphony 1x256x8 = 2048 Blocks FILE_WriteClose (); i want to save the Pitchband also, i but this is 16bit, and that cant be Written, i need 8Bit Values, so my my 16Bit Pitchband-Variable is named PB[track] it is done by: // 16Bit Pitchbend-value to 2x8Bit value - to get a saveable format PB8[0] = * ((unsigned char *)&PB[track]); //low byte PB8[1] = * ((unsigned char *)((&PB[track])+1)); //hi byte so far ok, QUESTION is: how to combine low and hi byte back to the 16bit Variable PB[track]? (after FILE_ReadBuffer is done) next question is how to split a multiy-array in low and hi bytes variables: for example PB[track][256] --- which is the Pitchbend-Information - over 256 Steps in a Sequence. thx 4 helpß
  4. good point! its far better the ui is updated directly via srio then via midi sysex cc or notes.. 32th blinking of 16x2 trigger indicatos bling and blang via midi making trouble... for example i have connected a sequencer to a blm(acts as controller) but all trigger indicators are leds from the sequencer to give timed indication isnt there any mb bus? from core to core
  5. oh i had the same, thoughts back in the days... not knowing what a external c-function is, and where the hell they are - thats a thing to learn first to get a point how TK arrange things... since i learned how to wiki, i also document that - for me to remember - and for other to get some inspiration. hmm i see three options: * learn how to NG-Script * learn no NG-Script - learn C instead + get the compiler running on your Computer * ask someone who do the programming for you... but if you want to change something after - you probably have to script or c again. i personally never learned c in shool or mentor... back in the days when max4live come up, i startet with graphical programming (Without c), t he programm i created, i later programmed on TK MIOS32, and i learned only the c-things i needet to get the programm running which i already know -via internet youtube and google researching- i was knowing what i need and want... i cant learn anything that i dont need @ the moment ... i am no expert too, but i make my own devices and jam with my bandmate every week since years... a "only musican" should just ask a friend to help him a musican which want to use custom or setup a custom midicontroller - have to explore that matter and that take time and entusiasm
  6. not use a mpx16... hmm lot of your quests cant handle a akai mpx16, but its small, has envelops, it depends on your "typical"-sampling time for a patch... because here it is very limited! and it has a lot of BAD things like: https://www.reddit.com/r/synthesizers/comments/61ivbx/akai_mpx16s_midi_implementation_is_shit/
  7. Phatline

    Trigger-Matrix-Footboard-CC

    Footboard Controller with 8 Hardware buttons and more Virtual Buttons accessable via 3x 2x40 LCDs... built for my guitar-syntharist - cri derntl
  8. Wiring construction thru-holes
  9. http://wiki.midibox.org/doku.php?id=16th_fixed_polysequencer
  10. Phatline

    to delete

    yeah!!! i want that
  11. i need rackmount . with desktop case or simular would be fine. not too deep
  12. na 300mm dont fit in my flight cases. thought more in the size of your desktop cases. they dont fit?
×
×
  • Create New...