MCPcopy Create free account

hub / github.com/atomic14/ch32v003-audio / functions

Functions165 in github.com/atomic14/ch32v003-audio

↓ 13 callersMethodgetBits
(bits: number)
buzzer-studio/src/talkieStream.ts:161
↓ 12 callersFunctionfindClosestValue
(actual: number, table: number[])
buzzer-studio/src/encoder/closestValueFinder.ts:5
↓ 10 callersMethodgetSynthesisK
(variant: ChipVariant, kIndex: number)
buzzer-studio/src/tmsTables.ts:241
↓ 10 callersMethodisUnvoiced
* Voiced/unvoiced detection using 2 criteria * * Uses two criteria: * 1. Low energy: originalEnergy < minEnergyThreshold → unvoiced (always c
buzzer-studio/src/encoder/reflector.ts:161
↓ 8 callersMethodmixer_bind_track
Bind a NoteCmd sequence to a track/voice. pitch_shift >= 1
PolyphonicSoundFirmware/src/polyphonic_player.cpp:101
↓ 7 callersMethodparameters
* Get encoded parameters for this frame * Returns a map of parameter names to quantized values
buzzer-studio/src/encoder/frameData.ts:37
↓ 6 callersFunctiongetDefaultSettings
* Helper to create default settings with all required fields
buzzer-studio/src/lpcEncoder.test.ts:26
↓ 5 callersFunctioncreateTestWav
* Create a minimal valid WAV file in memory * PCM, 8000 Hz, 16-bit, mono
buzzer-studio/src/lpcEncoder.test.ts:65
↓ 5 callersFunctionencodeFramesToBinary
( codingTable: CodingTable, parametersList: Record<string, number>[] )
buzzer-studio/src/encoder/binaryEncoder.ts:12
↓ 5 callersMethodencodeWav
* Encode WAV file to LPC hex data
buzzer-studio/src/lpcEncoder.ts:140
↓ 5 callersMethodisVoiced
()
buzzer-studio/src/encoder/frameData.ts:87
↓ 4 callersFunctionnibblesToHex
(nibbles: string[])
buzzer-studio/src/encoder/hexConverter.ts:23
↓ 4 callersMethodstop
()
buzzer-studio/src/player.ts:87
↓ 3 callersMethoddraw
()
buzzer-studio/src/visualizer.ts:129
↓ 3 callersMethodexportBitTimings
(params: SoundParameters)
buzzer-studio/src/soundEngine.ts:130
↓ 3 callersFunctiongetCurrentPath
()
buzzer-studio/src/lib/router.svelte.ts:2
↓ 3 callersMethodtranslateCoefficients
* Leroux-Gueguen algorithm for finding reflection coefficients * This is a more numerically stable variant of Levinson-Durbin * * @param codi
buzzer-studio/src/encoder/reflector.ts:63
↓ 2 callersFunctionaForLag
* Calculate autocorrelation for a specific lag
buzzer-studio/src/encoder/autocorrelator.ts:61
↓ 2 callersMethodcalculateFrameEnergy
* Calculate frame energy for voiced/unvoiced detection * Can calculate from original or emphasized signal
buzzer-studio/src/lpcEncoder.ts:328
↓ 2 callersMethodformattedRMS
* Format RMS from residual energy * Scale to 16-bit amplitude space
buzzer-studio/src/encoder/reflector.ts:48
↓ 2 callersMethodframeIsVoiced
Use voiced override on a frame if present
buzzer-studio/src/lpcEncoder.ts:552
↓ 2 callersMethodgetChipConfig
(variant: ChipVariant)
buzzer-studio/src/tmsTables.ts:235
↓ 2 callersFunctiongetMaxAbsolute
* Helper to get max absolute value from Float32Array
buzzer-studio/src/lpcEncoder.test.ts:14
↓ 2 callersMethodparameterizedValueForK
(k: number, binNo: number)
buzzer-studio/src/encoder/frameData.ts:68
↓ 2 callersFunctionparseWav
(arrayBuffer: ArrayBuffer)
buzzer-studio/src/encoder/wavParser.ts:17
↓ 2 callersMethodresize
()
buzzer-studio/src/visualizer.ts:73
↓ 2 callersMethodrev
(a: number)
buzzer-studio/src/talkieStream.ts:154
↓ 2 callersMethodstopFrame
* Create a stop frame (silence)
buzzer-studio/src/encoder/frameData.ts:27
↓ 1 callersFunctionapplyButterworthLowPass2ndOrder
( samples: Float32Array, cutoffHz: number, sampleRate: number )
buzzer-studio/src/encoder/audioPreprocessor.ts:127
↓ 1 callersMethodapplyUnvoicedMultiplier
* Apply unvoiced multiplier to all unvoiced frames (BlueWizard RMSNormalizer.m lines 39-44) * This is ALWAYS applied, regardless of normalization s
buzzer-studio/src/lpcEncoder.ts:626
↓ 1 callersFunctioncenterClip
* Center-clipping to emphasize periodic excitation and reduce formant influence
buzzer-studio/src/encoder/pitchEstimator.ts:239
↓ 1 callersFunctioncorrectOctaveErrors
* Sub-multiple detection for octave error correction * Checks if the detected pitch is actually a harmonic of the true pitch
buzzer-studio/src/encoder/pitchEstimator.ts:186
↓ 1 callersFunctionestimatePitch
( frame: Float32Array, config: Partial<PitchEstimatorConfig> = {}, debug: boolean = false )
buzzer-studio/src/encoder/pitchEstimator.ts:40
↓ 1 callersFunctionfindBestPeriod
* Find the period with maximum autocorrelation
buzzer-studio/src/encoder/pitchEstimator.ts:140
↓ 1 callersFunctiongenerateCodeFromProcessedTracks
( processedTracks: ProcessedTrack[], baseName: string = 'midi_export' )
buzzer-studio/src/midiConverter.ts:206
↓ 1 callersMethodgenerateSound
(params: SoundParameters)
buzzer-studio/src/soundEngine.ts:40
↓ 1 callersFunctiongetCoefficients
(samples: Float32Array, maxLag: number)
buzzer-studio/src/encoder/autocorrelator.ts:10
↓ 1 callersFunctiongetNormalizedCoefficients
( samples: Float32Array, minPeriod: number, maxPeriod: number )
buzzer-studio/src/encoder/autocorrelator.ts:25
↓ 1 callersMethodhasNext
Talkie/src/TalkieStream.h:51
↓ 1 callersMethodhasNext
()
buzzer-studio/src/talkieStream.ts:150
↓ 1 callersMethodhasNext
Returns true if more samples are available (override from AudioStream)
SamplePlayback/src/IMAAdpcmStream.h:19
↓ 1 callersFunctioninterpolatePitch
* Parabolic interpolation for sub-sample pitch precision * Uses three points around the peak to estimate true maximum
buzzer-studio/src/encoder/pitchEstimator.ts:156
↓ 1 callersMethodkBinFor
(k: number)
buzzer-studio/src/tmsTables.ts:254
↓ 1 callersMethodloadAndResampleWav
* Load and resample WAV for preview (without full encoding)
buzzer-studio/src/lpcEncoder.ts:122
↓ 1 callersFunctionmidiToFreq
* Convert MIDI note number to frequency in Hz * A4 = 440 Hz at MIDI note 69
buzzer-studio/src/midiConverter.ts:30
↓ 1 callersMethodmidiToNoteName
(midi: number)
buzzer-studio/src/visualizer.ts:222
↓ 1 callersFunctionmix_to_u8
---------------------------------- Soft clip and bias to 8-bit sample ----------------------------------
PolyphonicSoundFirmware/src/polyphonic_player.cpp:27
↓ 1 callersMethodnextSample
* Generate the next audio sample at 8KHz. * * This implements a 10-stage lattice filter driven by either: * - Voiced excitation: Periodic chirp wav
Talkie/src/TalkieStream.cpp:290
↓ 1 callersMethodnextSample
()
buzzer-studio/src/talkieStream.ts:315
↓ 1 callersMethodnextSample
SamplePlayback/src/ADPCM2BitStream.cpp:20
↓ 1 callersFunctionnibblesFromBinary
* Convert binary string to array of 4-bit nibbles
buzzer-studio/src/encoder/binaryEncoder.ts:36
↓ 1 callersMethodnormalizeUnvoicedRMS
* Normalize unvoiced RMS using peak normalization (BlueWizard RMSNormalizer.m lines 24-37) * Finds max RMS across all unvoiced frames and scales to
buzzer-studio/src/lpcEncoder.ts:594
↓ 1 callersMethodnormalizeVoicedRMS
* Normalize voiced RMS using peak normalization (BlueWizard RMSNormalizer.m lines 9-22) * Finds max RMS across all voiced frames and scales to rmsL
buzzer-studio/src/lpcEncoder.ts:562
↓ 1 callersFunctionnotesToCommands
* Convert notes to NoteCmd format * Rests are represented as notes with period_us = 0
buzzer-studio/src/midiConverter.ts:90
↓ 1 callersMethodparameterizedValueForPitch
(pitch: number)
buzzer-studio/src/encoder/frameData.ts:77
↓ 1 callersMethodparameterizedValueForRMS
(rms: number)
buzzer-studio/src/encoder/frameData.ts:72
↓ 1 callersMethodparameters
()
buzzer-studio/src/tmsTables.ts:277
↓ 1 callersMethodpause
()
buzzer-studio/src/player.ts:63
↓ 1 callersFunctionperiod_us_to_phase_inc
--------------------------------------- Utility: integer-only freq -> phase_inc phase_inc = (freq * 2^32) / FS_HZ where freq = 1e6 / period_us so phas
PolyphonicSoundFirmware/src/polyphonic_player.cpp:17
↓ 1 callersMethodplay
Talkie/src/player.cpp:82
↓ 1 callersMethodplay
PolyphonicSoundFirmware/src/polyphonic_player.cpp:121
↓ 1 callersMethodplay
()
buzzer-studio/src/player.ts:45
↓ 1 callersMethodplay
SamplePlayback/src/player.cpp:85
↓ 1 callersFunctionplay_music
* Plays the music by iterating through note commands and toggling the GPIO pin * * @param max_len_us Maximum playback time in microseconds (used to
SimpleSoundFirmware/src/music.cpp:11
↓ 1 callersMethodprocessFrames
* Process audio samples into LPC frames * Following BlueWizard's algorithm with selective buffer usage: * - Voiced/unvoiced detection uses BOTH
buzzer-studio/src/lpcEncoder.ts:349
↓ 1 callersMethodprocessNextFrame
()
buzzer-studio/src/talkieStream.ts:187
↓ 1 callersFunctionprocessTracksForExport
(midi: Midi, trackIndices: number[])
buzzer-studio/src/midiConverter.ts:156
↓ 1 callersFunctionreadSamples
* Read and convert PCM samples to normalized float32 mono
buzzer-studio/src/encoder/wavParser.ts:102
↓ 1 callersMethodreset
* Reset the speech synthesizer to start from the beginning of the data. * Clears all filter state and synthesis parameters. * The first frame will b
Talkie/src/TalkieStream.cpp:157
↓ 1 callersMethodreset
()
buzzer-studio/src/talkieStream.ts:119
↓ 1 callersMethodreset
SamplePlayback/src/player.cpp:119
↓ 1 callersFunctionreverseBitsInNibble
* Reverse bits within a 4-bit nibble * Example: 0010 (2) → 0100 (4)
buzzer-studio/src/encoder/hexConverter.ts:10
↓ 1 callersMethodsay
* Start speaking encoded speech data * @param address Pointer to LPC-encoded speech data * @param mode Speech chip to emulate (TMS5220 or TMS510
Talkie/src/TalkieStream.h:37
↓ 1 callersMethodscheduleNotes
()
buzzer-studio/src/player.ts:119
↓ 1 callersMethodscrollToPlayhead
()
buzzer-studio/src/visualizer.ts:107
↓ 1 callersMethodsetupClickHandler
()
buzzer-studio/src/visualizer.ts:49
↓ 1 callersFunctionsplitIntoMonophonicStreams
* Split a track's notes into monophonic streams (no overlapping notes per stream) * Notes with small overlaps will have their duration adjusted rathe
buzzer-studio/src/midiConverter.ts:39
↓ 1 callersMethodupdateTime
()
buzzer-studio/src/player.ts:164
↓ 1 callersMethodvalueToBinary
* Convert a value to binary string with specified bit width * Clamps value to prevent overflow
buzzer-studio/src/encoder/bitHelpers.ts:9
↓ 1 callersFunctionyinEstimate
* Minimal YIN implementation (difference function + CMND) returning period or 0 if none
buzzer-studio/src/encoder/pitchEstimator.ts:261
MethodADPCM2BitStream
SamplePlayback/src/ADPCM2BitStream.h:9
MethodDelay_Ms
SimpleSoundFirmware/src/HAL.h:112
MethodDelay_Us
SimpleSoundFirmware/src/HAL.h:114
FunctionEXTI7_0_IRQHandler
SimpleSoundFirmware/src/main.cpp:11
FunctionHardFault_Handler
Talkie/src/main.cpp:162
FunctionHardFault_Handler
PolyphonicSoundFirmware/src/main.cpp:57
FunctionHardFault_Handler
SamplePlayback/src/main.cpp:51
FunctionHardFault_Handler
SimpleSoundFirmware/src/main.cpp:67
MethodIMAAdpcmStream
SamplePlayback/src/IMAAdpcmStream.h:6
FunctionNMI_Handler
Talkie/src/main.cpp:161
FunctionNMI_Handler
PolyphonicSoundFirmware/src/main.cpp:56
FunctionNMI_Handler
SamplePlayback/src/main.cpp:50
FunctionNMI_Handler
SimpleSoundFirmware/src/main.cpp:65
MethodPlayer
Talkie/src/player.cpp:9
MethodPlayer
SamplePlayback/src/player.cpp:10
MethodPolyphonicPlayer
PolyphonicSoundFirmware/src/polyphonic_player.cpp:36
MethodTalkieStream
Talkie/src/TalkieStream.cpp:150
FunctionapplyHammingWindow
(frame: Float32Array)
buzzer-studio/src/encoder/audioPreprocessor.ts:71
FunctionapplyHighPassFilter
( samples: Float32Array, cutoffHz: number, sampleRate: number )
buzzer-studio/src/encoder/audioPreprocessor.ts:82
FunctionapplyLowPassFilter
( samples: Float32Array, cutoffHz: number, sampleRate: number )
buzzer-studio/src/encoder/audioPreprocessor.ts:104
next →1–100 of 165, ranked by callers