allocate 32bit table in SDRAM memory for loading tables created with the waveformGenerator, guitarTable or other wavetable-generating modules. Remco van der Most BSD table.axh 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 fatfs 0) && !ltrig) { ltrig=1; FIL FileObject; FRESULT err; UINT bytes_read; err = f_open(&FileObject, inlet_filename, FA_READ | FA_OPEN_EXISTING); if (err != FR_OK) { report_fatfs_error(err,inlet_filename); return;} int rem_sz = sizeof(*array)*SIZE; int offset = 0; while (rem_sz>0) { if (rem_sz>sizeof(fbuff)) { err = f_read(&FileObject, fbuff, sizeof(fbuff),&bytes_read); if (bytes_read == 0) break; memcpy((char *)(&array[0]) + offset,(char *)fbuff,bytes_read); rem_sz -= bytes_read; offset += bytes_read; } else { err = f_read(&FileObject, fbuff, rem_sz,&bytes_read); memcpy((char *)(&array[0]) + offset,(char *)fbuff,bytes_read); rem_sz = 0; } } if (err != FR_OK) { report_fatfs_error(err,inlet_filename); return;}; err = f_close(&FileObject); if (err != FR_OK) { report_fatfs_error(err,inlet_filename); return;}; } else if (!(load>0)) ltrig=0;]]> Monophonic MIDI keyboard note input, gate, velocity and release velocity Johannes Taelman BSD midi_in.axh polyIndex);]]> sine wave oscillator Johannes Taelman BSD osc.axh >4);]]> Multiply (attenuate) with a constant value Johannes Taelman BSD math.axh polyphonic 1 true 8 32 8 8 -8 -8 1296 1000 no -8 -8 1296 1000