Hi pert!
I didn't see that last reply! That's what I was suspecting about the libraries...
I added full path to "WaveRP.h" "SdFat.h" call. This is part of the bastl LIBRARY provided.
I cannot paste all the errors, it's too long... Here's a part:
Arduino : 1.8.5 (Linux), Carte : "Arduino/Genuino Uno"
In file included from /home/jean/Arduino/eurorack/grandPa_1_2/grandPa_1_2.ino:34:0:
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:93:19: error: 'SdBaseFile' does not name a type
volatile static SdBaseFile *sdFile;
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:13: error: 'SdBaseFile' has not been declared
bool play(SdBaseFile* file); //,uint32_t _pos=0
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:137:15: error: 'SdBaseFile' has not been declared
bool record(SdBaseFile* file, uint16_t rate, uint8_t pin, uint8_t ref);
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:141:13: error: 'SdBaseFile' has not been declared
bool trim(SdBaseFile* file);
^
grandPa_1_2:84: error: 'prog_uint16_t' does not name a type
PROGMEM prog_uint16_t noteSampleRateTable[65]={
^
grandPa_1_2:226: error: 'prog_uint16_t' has not been declared
uint32_t curveMap(uint16_t value, uint8_t numberOfPoints, prog_uint16_t * tableMap){
^
In file included from /home/jean/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from sketch/grandPa_1_2.ino.cpp:1:
/home/jean/Arduino/eurorack/grandPa_1_2/grandPa_1_2.ino: In function 'uint32_t mapVOct(uint16_t)':
grandPa_1_2:194: error: 'noteSampleRateTable' was not declared in this scope
if(abs(value-cvInputCalibrate[i])<3) return pgm_read_word_near(noteSampleRateTable+(i*6));
^
grandPa_1_2:195: error: 'noteSampleRateTable' was not declared in this scope
if(abs(value-cvInputCalibrate[i+1])<3) return pgm_read_word_near(noteSampleRateTable+((1+i)*6));
^
grandPa_1_2:206: error: 'noteSampleRateTable' was not declared in this scope
outMax=pgm_read_word_near(noteSampleRateTable+((i*6)+_note+1));//tableMap[numberOfPoints+i+1];
^
grandPa_1_2:207: error: 'noteSampleRateTable' was not declared in this scope
outMin=pgm_read_word_near(noteSampleRateTable+(i*6)+_note+0);
^
/home/jean/Arduino/eurorack/grandPa_1_2/grandPa_1_2.ino: At global scope:
grandPa_1_2:219: error: 'prog_uint16_t' does not name a type
PROGMEM prog_uint16_t granSizeMap[16]={
^
grandPa_1_2:223: error: 'prog_uint16_t' does not name a type
PROGMEM prog_uint16_t shiftSpeedMap[20]={
^
grandPa_1_2:226: error: 'prog_uint16_t' has not been declared
uint32_t curveMap(uint16_t value, uint8_t numberOfPoints, prog_uint16_t * tableMap){
^
MEM:2: error: 'prog_uint16_t' does not name a type
PROGMEM prog_uint16_t clearTo[]={
^
MEM:31: error: 'prog_char' does not name a type
PROGMEM prog_char labels[]={
^
MEM:78: error: 'prog_uint16_t' does not name a type
PROGMEM prog_uint16_t maxValue[]={
^
In file included from /home/jean/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from sketch/grandPa_1_2.ino.cpp:1:
/home/jean/Arduino/eurorack/grandPa_1_2/MEM.ino: In function 'int maxVal(uint8_t)':
MEM:101: error: 'maxValue' was not declared in this scope
return pgm_read_word_near(maxValue+_maxVal);
^
/home/jean/Arduino/eurorack/grandPa_1_2/MEM.ino: In function 'void clearSound(unsigned char)':
MEM:308: error: 'clearTo' was not declared in this scope
setVar(i,j, pgm_read_word_near(clearTo+j));
^
/home/jean/Arduino/eurorack/grandPa_1_2/SD.ino: In function 'bool play(uint8_t)':
SD:128: error: no matching function for call to 'WaveRP::play(SdFile*)'
if (!wave.play(&file)) { //,uint32_t _pos=0
^
/home/jean/Arduino/eurorack/grandPa_1_2/SD.ino:128:25: note: candidate is:
In file included from /home/jean/Arduino/eurorack/grandPa_1_2/grandPa_1_2.ino:34:0:
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:8: note: bool WaveRP::play(int*)
bool play(SdBaseFile* file); //,uint32_t _pos=0
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:8: note: no known conversion for argument 1 from 'SdFile*' to 'int*'
/home/jean/Arduino/eurorack/grandPa_1_2/SOUND.ino: At global scope:
SOUND:27: error: 'prog_uint16_t' does not name a type
PROGMEM prog_uint16_t usefulLengths[17]={
^
/home/jean/Arduino/eurorack/grandPa_1_2/SOUND.ino: In function 'void updateSound()':
SOUND:57: error: no matching function for call to 'WaveRP::play(SdFile*)'
wave.play(&file);
^
/home/jean/Arduino/eurorack/grandPa_1_2/SOUND.ino:57:26: note: candidate is:
In file included from /home/jean/Arduino/eurorack/grandPa_1_2/grandPa_1_2.ino:34:0:
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:8: note: bool WaveRP::play(int*)
bool play(SdBaseFile* file); //,uint32_t _pos=0
^
Yes there's a lot ![]()