Search found 19 matches

by GVisser
Tue Jun 30, 2020 8:01 am
Forum: General discussion
Topic: MIDI file player?
Replies: 15
Views: 3181

Re: MIDI file player?

Hi ag123 and Bakisha , I agree that the F401 is extremely limited both from a computational speed and memory point of view, I was just hoping that it would have been suitable for me as I am only dealing with relatively small midi files and because the tesla coil as an output device can only handle 2...
by GVisser
Mon Jun 29, 2020 7:58 am
Forum: General discussion
Topic: MIDI file player?
Replies: 15
Views: 3181

Re: MIDI file player?

@GVisser After some experiment on my diy-dev board for audio experiments, here is my conclusions: - Depending on what device you are connected, distortions are present when you are plugged in some equipment with AUDIO-IN. Most probably because it expect 1Vp-p, and you are feeding it with 3.3Vp-p. H...
by GVisser
Sun Jun 28, 2020 10:52 am
Forum: General discussion
Topic: MIDI file player?
Replies: 15
Views: 3181

Re: MIDI file player?

I tested it on STM32F103C8, with PB0 connected to small audio amplifier with low pass filter. There is a sound, but i tested only tune that is already in sketch. I didn't try convert midi. Hey Bakisha , quick question ... what did your test sound like? Was it clear or did it sound somewhat 'distort...
by GVisser
Sun Jun 28, 2020 9:41 am
Forum: General discussion
Topic: MIDI file player?
Replies: 15
Views: 3181

Re: MIDI file player?

Hey Bakisha , Completed the in-circuit test and it all works well, apart from one small change I had to make to the code 8-) Strangely enough, setting the timer to TIMER_OUTPUT_COMPARE_PWM1 mode, caused the program to set the pin output HIGH in between tones with the tones pulling the output low: PW...
by GVisser
Sat Jun 27, 2020 11:04 am
Forum: General discussion
Topic: MIDI file player?
Replies: 15
Views: 3181

Re: MIDI file player?

Hi, i might help a little bit since once i did project with audio with PWM. After a quick look on a sketch, i changed few line, to be able to compile on official core: //HardwareTimer pwmtimer(3); HardwareTimer *pwmtimer = new HardwareTimer(TIM3); void PWM_Init( void ) { /* Timer3.attachCompare1Int...
by GVisser
Sat Jun 27, 2020 11:03 am
Forum: General discussion
Topic: MIDI file player?
Replies: 15
Views: 3181

Re: MIDI file player?

midi is kind of the 'deep end' the usual things are to try to get a simple sketch e.g. blink working first to understand the platform. libmaple has some f401 'support' but do be wary that the api is not consistent with F401 so you may still end up having to 'port' the app simply to run it on f401. ...
by GVisser
Fri Jun 26, 2020 6:12 pm
Forum: General discussion
Topic: MIDI file player?
Replies: 15
Views: 3181

Re: MIDI file player?

fpiSTM wrote:
Fri Jun 26, 2020 6:05 pm
This project uses the LibMaple core so you will have to convert it to use the HardwareTimer from the STM2 core.
That's why you got those errors.
Hey @fpiSTM , thanks for that.

I'll see what I can do :-)
by GVisser
Fri Jun 26, 2020 2:51 pm
Forum: General discussion
Topic: MIDI file player?
Replies: 15
Views: 3181

MIDI file player?

Hi all, I am in search of a simple midi file player that I could use in my project, so was looking at https://github.com/JBSchueler/arduino-midi-player_stm32. The problem is that the sketch won't compile for my STM32F401. Among other errors it is complaining about the HardwareTimer arduino-midi-play...
by GVisser
Fri Jun 26, 2020 2:24 pm
Forum: General discussion
Topic: I2C and timers?
Replies: 5
Views: 1382

Re: I2C and timers?

Thank you @fpiSTM , thant answers my question perfectly :D
by GVisser
Mon Jun 22, 2020 8:22 am
Forum: General discussion
Topic: I2C and timers?
Replies: 5
Views: 1382

Re: I2C and timers?

Hi mrburnette and stevestrong , Thank you for your replies. I don't think I asked my question very well ... what I was actually asking was wether or not the I2C interfaces, made use of either the General Purpose or Advanced Control Timers? I think that the answer is that they do not, but wanted to b...

Go to advanced search