Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/MicroDexed/commit/493240126fd43808a2af28f88d772b9ede75c6db?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
10 additions and
3 deletions
MicroDexed.ino
config.h
@ -168,7 +168,10 @@ void setup()
# endif
# endif
Serial . print ( F ( " AUDIO_BLOCK_SAMPLES= " ) ) ;
Serial . print ( F ( " AUDIO_BLOCK_SAMPLES= " ) ) ;
Serial . println ( AUDIO_BLOCK_SAMPLES ) ;
Serial . print ( AUDIO_BLOCK_SAMPLES ) ;
Serial . print ( F ( " (Time per block= " ) ) ;
Serial . print ( 1000000 / ( SAMPLE_RATE / AUDIO_BLOCK_SAMPLES ) ) ;
Serial . println ( F ( " ms) " ) ) ;
# ifdef TEST_NOTE
# ifdef TEST_NOTE
Serial . println ( F ( " MIDI test enabled " ) ) ;
Serial . println ( F ( " MIDI test enabled " ) ) ;
@ -200,6 +203,7 @@ void setup()
void loop ( )
void loop ( )
{
{
int16_t * audio_buffer ; // pointer to 128 * int16_t (=256 bytes!)
int16_t * audio_buffer ; // pointer to 128 * int16_t (=256 bytes!)
const uint16_t audio_block_time_ms = 1000000 / ( SAMPLE_RATE / AUDIO_BLOCK_SAMPLES ) ;
while ( 42 = = 42 ) // DON'T PANIC!
while ( 42 = = 42 ) // DON'T PANIC!
{
{
@ -225,7 +229,7 @@ void loop()
elapsedMicros t1 ;
elapsedMicros t1 ;
dexed - > getSamples ( AUDIO_BLOCK_SAMPLES , audio_buffer ) ;
dexed - > getSamples ( AUDIO_BLOCK_SAMPLES , audio_buffer ) ;
uint32_t t2 = t1 ;
uint32_t t2 = t1 ;
if ( t2 > 2900 ) // everything greater 2.9ms is a buffer underrun!
if ( t2 > audio_block_time_ms ) // everything greater 2.9ms is a buffer underrun!
xrun + + ;
xrun + + ;
if ( t2 > render_time_max )
if ( t2 > render_time_max )
render_time_max = t2 ;
render_time_max = t2 ;
@ -25,6 +25,9 @@
# include "midinotes.h"
# include "midinotes.h"
// ATTENTION! For better latency you have to redefine AUDIO_BLOCK_SAMPLES from
// 128 to 64 in <ARDUINO-IDE-DIR>/cores/teensy3/AudioStream.h
// Initial values
// Initial values
# define MIDI_DEVICE Serial1
# define MIDI_DEVICE Serial1
# define USE_ONBOARD_USB_HOST 1
# define USE_ONBOARD_USB_HOST 1