Page 2 of 2

Re: 4 channel polyphonic tone generator (blue pill)

Posted: Mon Nov 13, 2017 9:38 pm
by ChrisMicro
>But does it have only 1 output?

Yes, the signals are "analog" like waveforms and are added internally.

It is done here ( line 277 ).

Re: 4 channel polyphonic tone generator (blue pill)

Posted: Tue Nov 14, 2017 10:28 am
by zoomx
Uhmmm..... streaming.h is missing.

Code: Select all

sketch\TimerTone.h:3:23: fatal error: Streaming.h: No such file or directory
Is it that one?

Code: Select all

Streaming.h - Arduino library for supporting the << streaming operator
  Copyright (c) 2010-2012 Mikal Hart.  All rights reserved.
Did "Arduino language" still need it?

Edit: yes it need it!

Edit2: I added that streaming.h and got this error

Code: Select all

Arduino: 1.8.4 (Windows 7), Board: "Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), STM32duino bootloader, 72Mhz (Normal)"

sketch\TimerTone.cpp: In function 'uint8_t toneSetup(const uint8_t*, uint8_t)':

TimerTone.cpp:220: error: 'systick_attach_callback' was not declared in this scope
Edit3: maybe my core is old
viewtopic.php?t=2117

Re: 4 channel polyphonic tone generator (blue pill)

Posted: Tue Nov 14, 2017 10:54 am
by stevestrong
Sorry, I should have mention it, it is about ArduinoStreaming lib, you can get it from here
https://github.com/geneReeves/ArduinoSt ... treaming.h
or here (first attachment) http://stm32duino.com/viewtopic.php?f=9&t=2425

Funny, I don't get any warning/error. Are you using the TonePlayer example from the example folder of the lib?
Did you unpack the files under Arduino/libraries ?
How old is your repo? You should update it, I always update it at least once weekly.

Maybe update the IDE to 1.8.5.

Re: 4 channel polyphonic tone generator (blue pill)

Posted: Tue Nov 14, 2017 11:14 am
by zoomx
Your streaming.h is a little newer than mine but, after updating core (I found it was very old, March 2017!), I got it compiled.
Anyway I updated streaming.h.

Now I have to search for the hardware!

Thanks!

Re: 4 channel polyphonic tone generator (blue pill)

Posted: Tue Nov 14, 2017 6:18 pm
by Vassilis
Well done Steve, I like it !