Dumbest Question first - do you have the correct Audio Shield? You need
Rev D for Teensy 4.0, Rev C for teensy 3.6.
Rev C has different pinout, you can use patch cables instead of stacking
if you know what you're doing.

I seem to remember that faustZita didn't work for us either on Teensy
(something to do with faustZita).
All other dsp code we tried did work though.

Try with another .dsp example? Easiest one is alway the default:

import("stdfaust.lib");
freq = nentry("freq",440,20,20000,0.01) : si.smoo;
gain = nentry("gain",1,0,1,0.01) : si.smoo;
process = os.sawtooth(freq)*gain;

Make sure the faust library is imported correctly

#include "FaustSawtooth.h"
FaustSawtooth faustSawtooth;

These might be called differently, ExFaust2 or something. Adjust in your
Arduino sketch.

Also make sure in the arduino sketch, the patchcords are correct and the
shield is initialized.
The Audio design tool leaves some of this out when you copy code over.

I'm talking about this section:

FaustSawtooth faustSawtooth;
AudioOutputI2S out;
AudioControlSGTL5000 audioShield;
AudioConnection patchCord0(faustSawtooth,0,out,0);
AudioConnection patchCord1(faustSawtooth,0,out,1);

void setup() {
 AudioMemory(2);
 audioShield.enable();
 audioShield.volume(0.1);
}

I'm not at our Audio dev machine right now so can't look up exact
versions of software ..

All the best

Roland
Am 2020-06-26 11:47, schrieb Ciro Caputo:

Hey Roland, thanks for the answer, this is exactly the tutorial I followed (I also switched the linker to g++), I tried with the faustZita effect. This way the sketch compiles (both exidix_start and _end are already defined in the .cpp file) but the Teensy doesn't get recognized. I thought I did something wrong and tried the example files linked in the tutorial but those don't work for me either. I'm using Arduino 1.8.12 and teensyduino 1.52 On Fri, Jun 26, 2020, 11:30 Roland Nebe <rol...@groovelastig.de> wrote:
Hey Ciro,

this tutorial for the Teensy in Arduino still applies for the Teensy 4.0:

https://faust.grame.fr/doc/tutorials/index.html#dsp-on-the-teensy-with-faust
If you do all the steps, you should be able to get it to play the demo patch.

Note there's a step where you need to switch the Linker from gcc to g++, I 
think we just did that for both Teensy 3.6 and 4.0.

The described workflow is roughly this

- create patch, then export for Teensy https://faust.grame.fr/tools/editor/index.html - include the exported-for-Teensy Faust code in your Arduino Sketch, the connections to the Teensy Audio Shield are made with the Teensy Audio library / Design Tool https://www.pjrc.com/teensy/gui/index.html

- compile the sketch

A little snippet done with a Teensy 3.6 + Audioshield + MIDI Keyboard 
https://www.youtube.com/watch?v=lQDKfzekymQ
A little snippet done with a Teensy 4.0 + Audioshield + MIDI Keyboard https://www.instagram.com/p/B-_q-_aBNo8/
Hope you get it to work!

Roland Am 2020-06-26 11:04, schrieb Ciro Caputo: Hi, first time poster, long time lurker here. After fiddling with Faust for a bit I bought a Teensy 4 to try to run some Faust patches I made on it. I tried running the example files from Romain Michon tutorial but when compiling it gives me this linker error: //c:/program files (x86)/arduino/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/armv7e-m/fpu/fpv5-d16\libgcc.a(unwind-arm.o): In function `get_eit_entry':
//
//unwind-arm.c:(.text+0x134): undefined reference to `__exidx_end'
//unwind-arm.c:(.text+0x138): undefined reference to `__exidx_start'
//
//collect2.exe: error: ld returned 1 exit status

I can get it to compile and upload by defining the two references as unsigned, but then the Teensy doesn't get recognized by the ide and an "usb device not recognised" quickly appears. _______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users
--
Roland Nebe
Flurstr. 68
D-40235 Düsseldorf

+49 211 24790287
+49 171 1211162
+49 177 1810806

rol...@groovelastig.de

facebook.com/roland.nebe [1]
facebook.com/warpedtype [2]

http://www.groovelastig.de/

--
Roland Nebe
Flurstr. 68
D-40235 Düsseldorf

+49 211 24790287
+49 171 1211162
+49 177 1810806

rol...@groovelastig.de

facebook.com/roland.nebe
facebook.com/warpedtype

http://www.groovelastig.de/
Links:
------
[1] http://facebook.com/roland.nebe
[2] http://facebook.com/warpedtype
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to