Awesome. THAT's where I saw it. Happy Friday.
Type: Posts; User: blakeAlbion
Awesome. THAT's where I saw it. Happy Friday.
Hello,
Can I host 2 PT8211 boards on a single Teensy 4.0 using Audio Library for 2 x Stereo outputs?
I thought I read this somewhere but cannot find it today. Is it possible? If there's...
Protosupplies shows the LC as
<100mA typical @ 48MHz
I can work with that!
I know the answer will be "it depends", nonetheless what's the nominal current consumption for a Teensy, say a Teensy LC running a simple program and not driving anything as current-consuming as an...
Thanks to all for the input!
The resulting code is as good as anyone's AFAIK. It can't be perfect.
Yes, I have a timer callback doing this
void timer_handle_interrupts(int timer) {
MIDI.read();
if (CLOCK_RUNNING) {
if (clockFuture > 0 && (micros() - clockFuture) >= CLOCK_LENGTH) {
...
The problem with.a slight lag is this is a looping sequencer and it will never catch up. Device A plays a short loop, device B plays a short loop; either they line up perfectly or it’s unusable. So...
For 120BPM a square clock pulse could be around 10ms at 48Hz. That just doesn't work in my tests. It needs to be narrower. But not too narrow. Sigh.
Based on experimentation and input from forums, a few things have helped in small ways, and it adds up to a decent but not perfect solution.
1) put the MIDI.read() on a Teensy timer and don't be...
I didn't make this clear enough, sorry. I can read MIDI clocks and run my CR-5000 if it's a basic drum pattern and the MIDI source is really just another drum machine doing nothing but putting out...
I have tried this a few different ways, but never with elapsedMicros(). It just does not work at all. The clock drops, and drops, and drops. I think it's because my test clock source generates a...
Wow! Thanks. I'll need to do some thinking and tinkering.
That's what I do!
Hah. Okay. There is no better way to do this.
The electronics for clock IN and OUT are simple, but not consistent.
Generally you can expect a "TTL" level signal to work, meaning logical HIGH is close to 5V and LOW is close to ground.
This...
I added a timer. It was easy and FUN. Thankyou!
I need this to work consistently if the tempo varies. I need it be handle stop-continue from my master MIDI sequencer. And as I said above, I can't use USB MIDI for this. I must work with legacy MIDI...
I wrote this in a hurry!
What I mean more specifically is, MIDI clock was designed to operate at 24PPQN.
I need to drive my Roland CR-5000 drum machine at 24PPQN.
I get a MIDI clock pulse, but...
Hi! How it is done? How do I generate a locked, stable square wave at the same frequency as a stream of pulses coming from MIDI clock? Any references?
Thanks
(I used a 470µF capacitor to quiet down an IC2 OLED display.)
Thanks MarkT. I have no problem dropping in the 100µF capacitors. But how do I change the sample frequency? I am sampling in loop(), do I need to use a timer?
Thanks all for the input, all! What I found was the clicking/buzzing was greatly attenuated by adjusting analogRead bit depth and resampling. I had resampling at 32 and setting that to 0 cut noise by...
Thanks for some input! I looked up some contemporary op amps and read about ground noise, again.
I'm no good at book learnin' but I finally had to put on my deformed, underdeveloped thinking cap...
Hey, just curious. Were there any steps taken to reduce the noise from analogRead()? I have 4 pots I read on loop(), and I have added a divider to cut the polling time down to a lower speed, but the...
I have had similar noise problems using I2C for OLED displays in my audio projects. But for that problem it was simply a matter of adding a hella-big capacitor right to the OLED board. This is not so...
I am using a Teensy 4.0 within an antique transistor-powered drum machine.
It handles MIDI control and MIDI clock conversion very well. All was great until I wanted to add faders to the analog drum...
I tried the seeeduino library and it does not support xiao. But probably not impossible to get it working for someone with experience porting.
Ho hum. I'll just use a Teensy. I like Teensies.
Nope. Install, yes. Compile, no.
Yup, I can install the fork as "Seeed Arduino Audio".
Looks like seeedstudio's fork is based on Adafruit's fork and does support samd21 ?
https://github.com/Seeed-Studio/Seeed_Arduino_Audio
I too have a Xiao and wanted to know if it works with the Teensy Audio Library.
In comparison to the Teensy, the Xiao is the equivalent of the Teensy LC, including a DAC port.
So maybe it could...
… and the seeeduino wio
Adafruit forked it to work with the Metro boards. I think someone tried to make it work with the Due, and some other M0 boards.
But AFAIK nobody has made an effort to _maintain_ these ports....
OMG that is narsty.
I'm going to assume I could toggle a conventional LFO waveform if I wanted to?
Sorry I never wrote back. Many distractions. I'm going to revisit this soon, I think.
I do not have a lot of free time at this point, so I will not try to use the AD5628 for audio, but it would be...
I'm looking for a way to get 4 channels of audio with Teensy Audio Library.
I'm interested in the TDM solutions but I do not have the means of assembling a TDM pcb.
Could I use two PT8211 boards...
If I want to use digitalWriteFast(), do I need to use it with pinModeFast()?
Thanks,
Ben
The PMOD interface is just wiring to the dac chip. I did not make any effort to support the dac as an audio interface for the Teensy Audio Library. But now that I think about it, that would be fun. ...
This is part of a larger project using Teensy 4 and LC to control analog synthesizer circuits. The PAIA drum tone board provides the basic percussion sounds, and I am using the Teensy Audio Library...
LC documentation says,
TPM0 - Controls PWM pins 6, 9, 10, 20, 22, 23. Used by AltSoftSerial library and PulsePosition library.
TPM1 - Controls PWM pins 16, 17.
TPM2 - Controls PWM pins 3, 4.
...
This uses the Audio Library on the DAC port.
It uses a number of PWM pins and digital pins to control a PAIA drum tone board with vactrols added.
const int numLeds = 6;
int pwmLeds[numLeds] =...
here's the main INO file
#include <Audio.h>
#include <MIDI.h>
#include <SD.h>
#include <SPI.h>
#include <SerialFlash.h>
#include <Wire.h>
Hello All,
tldr: Are some PWM pins timers mutually exclusive to the Teensy Audio Library on the LC?
I can share some snippets when I get on my main laptop this afternoon.
I wanted a...
Love this.
Congratulations, I saw the new Teensy MicroMod board on SparkFun's website this morning. Being able to build a prototype using one processor and then swap out processors as an afterthought is kind of...
Uh, I guess my question is my answer. I'll solder my own grid. Then I will search the forum for demultiplexer solutions.
Hi all,
I was looking for a way to put an antique Casiotone MT-52 under midi control.
The keyboard matrix is 6x9 for a 49 key instrument.
If I were to add a bipolar transistor to each switch...
I don't know why I did not ask this before, but is there an example of how to set up SPI with the SD library?
How do I override the SPI settings the SD library uses?
Thanks,
Ben
I will add something to this thread, the obvious detail I missed. PWM timers will interfere with SPI.
I tend to use a lot of PWM to generate analog signals. The PWM timer chart given here...
It's amazing to me I can use some features of the Teensy Audio Library with the Teensy LC.
I am trying to use it stand-alone (no outboard DAC).
I actually do not need the DAC output. But, I must...