/dports/audio/py-aubio/aubio-0.4.9/python/lib/aubio/ |
H A D | cmd.py | 268 def samples2seconds(n_frames, samplerate): argument 269 return "%f\t" % (n_frames / float(samplerate)) 271 def samples2milliseconds(n_frames, samplerate): argument 298 def flush(self, frames_read, samplerate): argument 380 def flush(self, frames_read, samplerate): argument 414 def flush(self, frames_read, samplerate): argument 510 def flush(self, frames_read, samplerate): argument 544 samplerate = options.samplerate, 589 samplerate=args.samplerate) as a_source: 592 args.samplerate = a_source.samplerate [all …]
|
/dports/devel/libsigrok/libsigrok-0.5.2/src/output/ |
H A D | chronovu_la8.c | 33 uint64_t samplerate; member 46 static gboolean is_valid_samplerate(uint64_t samplerate) in is_valid_samplerate() argument 51 if (samplerate == (SR_MHZ(100) / (i + 1))) in is_valid_samplerate() 69 static uint8_t samplerate_to_divcount(uint64_t samplerate) in samplerate_to_divcount() argument 71 if (samplerate == 0 || !is_valid_samplerate(samplerate)) { in samplerate_to_divcount() 72 sr_warn("Invalid samplerate (%" PRIu64 "Hz)", samplerate); in samplerate_to_divcount() 76 return (SR_MHZ(100) / samplerate) - 1; in samplerate_to_divcount() 113 uint64_t samplerate; in receive() local 127 samplerate = g_variant_get_uint64(gvar); in receive() 130 samplerate = 0; in receive() [all …]
|
/dports/audio/aubio/aubio-0.4.9/python/demos/ |
H A D | demo_bench_yin.py | 10 samplerate = 44100 variable 14 def sinewave(freq, duration, samplerate = samplerate): argument 17 while length < duration * samplerate: 19 return np.sin( 2. * np.pi * np.arange(length) * freq / samplerate ).astype("float32") 21 def get_stats_for_pitch_method(method, freqs, samplerate = samplerate): argument 29 p = pitch(method, buf_size, hop_size, samplerate = samplerate)
|
H A D | demo_pitch.py | 13 samplerate = 44100 // downsample variable 14 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 19 s = source(filename, samplerate, hop_s) 20 samplerate = s.samplerate variable 24 pitch_o = pitch("yin", win_s, hop_s, samplerate) 39 print("%f %f %f" % (total_frames / float(samplerate), pitch, confidence)) 62 ax1 = get_waveform_plot(filename, samplerate = samplerate, block_size = hop_s, ax = ax1) 77 true_times = float(samplerate) * ground_truth[:,0] 101 set_xlabels_sample2time(ax3, times[-1], samplerate)
|
H A D | demo_notes.py | 13 samplerate = 44100 // downsample variable 14 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 19 s = source(filename, samplerate, hop_s) 20 samplerate = s.samplerate variable 24 notes_o = notes("default", win_s, hop_s, samplerate) 35 print("%.6f" % (total_frames/float(samplerate)), new_note)
|
H A D | demo_tempo.py | 15 samplerate = 0 variable 16 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 18 s = source(filename, samplerate, hop_s) 19 samplerate = s.samplerate variable 20 o = tempo("default", win_s, hop_s, samplerate) 36 print("%f" % (this_beat / float(samplerate)))
|
H A D | demo_source.py | 10 samplerate = 0 variable 12 if len(sys.argv) > 2: samplerate = int(sys.argv[2]) 15 f = source(sys.argv[1], samplerate, hop_size) 16 samplerate = f.samplerate variable 23 outstr = "read %.2fs" % (total_frames / float(samplerate)) 26 outstr += " at %dHz)" % f.samplerate
|
H A D | demo_mfcc.py | 17 if len(sys.argv) > 2: samplerate = int(sys.argv[2]) 18 else: samplerate = 0 26 samplerate = 0 variable 27 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 29 s = source(source_filename, samplerate, hop_s) 30 samplerate = s.samplerate variable 32 m = mfcc(win_s, n_filters, n_coeffs, samplerate) 54 get_waveform_plot( source_filename, samplerate, block_size = hop_s, ax = wave) 74 set_xlabels_sample2time( ax, frames_read, samplerate)
|
H A D | demo_onset_plot.py | 16 samplerate = 0 variable 17 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 19 s = source(filename, samplerate, hop_s) 20 samplerate = s.samplerate variable 21 o = onset("default", win_s, hop_s, samplerate) 51 …allsamples_max_times = [ float(t) * hop_s / downsample / samplerate for t in range(len(allsamples_… 58 stamp /= float(samplerate) 63 desc_times = [ float(t) * hop_s / samplerate for t in range(len(desc)) ] 69 stamp /= float(samplerate)
|
/dports/audio/py-aubio/aubio-0.4.9/python/demos/ |
H A D | demo_bench_yin.py | 10 samplerate = 44100 variable 14 def sinewave(freq, duration, samplerate = samplerate): argument 17 while length < duration * samplerate: 19 return np.sin( 2. * np.pi * np.arange(length) * freq / samplerate ).astype("float32") 21 def get_stats_for_pitch_method(method, freqs, samplerate = samplerate): argument 29 p = pitch(method, buf_size, hop_size, samplerate = samplerate)
|
H A D | demo_pitch.py | 13 samplerate = 44100 // downsample 14 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 19 s = source(filename, samplerate, hop_s) 20 samplerate = s.samplerate 24 pitch_o = pitch("yin", win_s, hop_s, samplerate) 39 print("%f %f %f" % (total_frames / float(samplerate), pitch, confidence)) 62 ax1 = get_waveform_plot(filename, samplerate = samplerate, block_size = hop_s, ax = ax1) 77 true_times = float(samplerate) * ground_truth[:,0] 101 set_xlabels_sample2time(ax3, times[-1], samplerate)
|
H A D | demo_source.py | 10 samplerate = 0 variable 12 if len(sys.argv) > 2: samplerate = int(sys.argv[2]) 15 f = source(sys.argv[1], samplerate, hop_size) 16 samplerate = f.samplerate variable 23 outstr = "read %.2fs" % (total_frames / float(samplerate)) 26 outstr += " at %dHz)" % f.samplerate
|
H A D | demo_notes.py | 13 samplerate = 44100 // downsample variable 14 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 19 s = source(filename, samplerate, hop_s) 20 samplerate = s.samplerate variable 24 notes_o = notes("default", win_s, hop_s, samplerate) 35 print("%.6f" % (total_frames/float(samplerate)), new_note)
|
H A D | demo_tempo.py | 15 samplerate = 0 16 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 18 s = source(filename, samplerate, hop_s) 19 samplerate = s.samplerate 20 o = tempo("default", win_s, hop_s, samplerate) 36 print("%f" % (this_beat / float(samplerate)))
|
H A D | demo_mfcc.py | 17 if len(sys.argv) > 2: samplerate = int(sys.argv[2]) 18 else: samplerate = 0 26 samplerate = 0 variable 27 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 29 s = source(source_filename, samplerate, hop_s) 30 samplerate = s.samplerate variable 32 m = mfcc(win_s, n_filters, n_coeffs, samplerate) 54 get_waveform_plot( source_filename, samplerate, block_size = hop_s, ax = wave) 74 set_xlabels_sample2time( ax, frames_read, samplerate)
|
H A D | demo_onset_plot.py | 16 samplerate = 0 variable 17 if len( sys.argv ) > 2: samplerate = int(sys.argv[2]) 19 s = source(filename, samplerate, hop_s) 20 samplerate = s.samplerate variable 21 o = onset("default", win_s, hop_s, samplerate) 51 …allsamples_max_times = [ float(t) * hop_s / downsample / samplerate for t in range(len(allsamples_… 58 stamp /= float(samplerate) 63 desc_times = [ float(t) * hop_s / samplerate for t in range(len(desc)) ] 69 stamp /= float(samplerate)
|
/dports/multimedia/butt/butt-0.1.27/src/ |
H A D | dsp.cpp | 21 band1l = new Biquad(bq_type_peak, 100.0 / double(samplerate), 1.9, cfg.dsp.gain1); in DSPEffects() 22 band2l = new Biquad(bq_type_peak, 350.0 / double(samplerate), 2, cfg.dsp.gain2); in DSPEffects() 23 band3l = new Biquad(bq_type_peak, 1000.0 / double(samplerate), 2, cfg.dsp.gain3); in DSPEffects() 24 band4l = new Biquad(bq_type_peak, 3500.0 / double(samplerate), 2, cfg.dsp.gain4); in DSPEffects() 25 band5l = new Biquad(bq_type_peak, 10000.0 / double(samplerate), 2, cfg.dsp.gain5); in DSPEffects() 27 band1r = new Biquad(bq_type_peak, 100.0 / double(samplerate), 1.9, cfg.dsp.gain1); in DSPEffects() 28 band2r = new Biquad(bq_type_peak, 350.0 / double(samplerate), 2, cfg.dsp.gain2); in DSPEffects() 29 band3r = new Biquad(bq_type_peak, 1000.0 / double(samplerate), 2, cfg.dsp.gain3); in DSPEffects() 69 attack_const = expf(-1.0f / (cfg.dsp.attack * samplerate)); in processSamples() 70 release_const = expf(-1.0f / (cfg.dsp.release * samplerate)); in processSamples() [all …]
|
/dports/audio/aubio/aubio-0.4.9/src/spectral/ |
H A D | filterbank_mel.c | 32 const fvec_t * freqs, smpl_t samplerate) in aubio_filterbank_set_triangle_bands() argument 61 } else if (freqs->data[fn] > samplerate / 2) { in aubio_filterbank_set_triangle_bands() 105 aubio_bintofreq (bin, samplerate, (win_s - 1) * 2); in aubio_filterbank_set_triangle_bands() 171 smpl_t samplerate) in aubio_filterbank_set_mel_coeffs_slaney() argument 188 if (samplerate <= 0) { in aubio_filterbank_set_mel_coeffs_slaney() 208 retval = aubio_filterbank_set_triangle_bands (fb, freqs, samplerate); in aubio_filterbank_set_mel_coeffs_slaney() 217 smpl_t samplerate, smpl_t *freq_min, smpl_t *freq_max) in aubio_filterbank_check_freqs() argument 219 if (samplerate <= 0) { in aubio_filterbank_check_freqs() 227 *freq_max = samplerate / 2.; in aubio_filterbank_check_freqs() 246 if (aubio_filterbank_check_freqs(fb, samplerate, &start, &end)) { in aubio_filterbank_set_mel_coeffs() [all …]
|
/dports/audio/py-aubio/aubio-0.4.9/src/spectral/ |
H A D | filterbank_mel.c | 32 const fvec_t * freqs, smpl_t samplerate) in aubio_filterbank_set_triangle_bands() argument 61 } else if (freqs->data[fn] > samplerate / 2) { in aubio_filterbank_set_triangle_bands() 105 aubio_bintofreq (bin, samplerate, (win_s - 1) * 2); in aubio_filterbank_set_triangle_bands() 171 smpl_t samplerate) in aubio_filterbank_set_mel_coeffs_slaney() argument 188 if (samplerate <= 0) { in aubio_filterbank_set_mel_coeffs_slaney() 208 retval = aubio_filterbank_set_triangle_bands (fb, freqs, samplerate); in aubio_filterbank_set_mel_coeffs_slaney() 217 smpl_t samplerate, smpl_t *freq_min, smpl_t *freq_max) in aubio_filterbank_check_freqs() argument 219 if (samplerate <= 0) { in aubio_filterbank_check_freqs() 227 *freq_max = samplerate / 2.; in aubio_filterbank_check_freqs() 246 if (aubio_filterbank_check_freqs(fb, samplerate, &start, &end)) { in aubio_filterbank_set_mel_coeffs() [all …]
|
/dports/comms/soapyplutosdr/SoapyPlutoSDR-soapy-plutosdr-0.2.1/ |
H A D | PlutoSDR_Settings.cpp | 50 long long samplerate=0; in ~SoapyPlutoSDR() local 541 long long samplerate =(long long) rate; in setSampleRate() local 554 if (samplerate < (25e6 / (12 * fir))) { in setSampleRate() 555 if (samplerate * 8 < (25e6 / 48)) { in setSampleRate() 563 samplerate = samplerate * 8; in setSampleRate() 571 rx_stream->set_buffer_size_by_samplerate(decimation ? samplerate / 8 : samplerate); in setSampleRate() 577 if (samplerate < (25e6 / (12 * fir))) { in setSampleRate() 578 if (samplerate * 8 < (25e6 / 48)) { in setSampleRate() 586 samplerate = samplerate * 8; in setSampleRate() 604 long long samplerate; in getSampleRate() local [all …]
|
/dports/audio/gsequencer/gsequencer-3.10.4/ags/audio/ |
H A D | ags_fluid_pitch_util.h | 46 guint samplerate, 51 guint samplerate, 56 guint samplerate, 61 guint samplerate, 66 guint samplerate, 71 guint samplerate, 76 guint samplerate, 81 guint samplerate,
|
H A D | ags_filter_util.h | 45 guint samplerate, 50 guint samplerate, 55 guint samplerate, 60 guint samplerate, 65 guint samplerate, 70 guint samplerate, 75 guint samplerate, 80 guint samplerate,
|
/dports/multimedia/audacious/audacious-4.1/src/audtool/ |
H A D | handlers_vitals.c | 91 int samplerate; in get_current_song_frequency() local 92 get_current_info (NULL, & samplerate, NULL); in get_current_song_frequency() 93 audtool_report ("%d", samplerate); in get_current_song_frequency() 98 int samplerate; in get_current_song_frequency_khz() local 99 get_current_info (NULL, & samplerate, NULL); in get_current_song_frequency_khz() 100 audtool_report ("%d", samplerate / 1000); in get_current_song_frequency_khz() 126 int bitrate, samplerate, channels; in get_current_song_info() local 127 get_current_info (& bitrate, & samplerate, & channels); in get_current_song_info() 128 audtool_report ("rate = %d freq = %d nch = %d", bitrate, samplerate, channels); in get_current_song_info()
|
/dports/emulators/mess/mame-mame0226/src/mame/audio/ |
H A D | phoenix.cpp | 127 m_c24_state.counter += n * samplerate; in update_c24() 141 m_c24_state.counter += n * samplerate; in update_c24() 170 m_c25_state.counter += n * samplerate; in update_c25() 184 m_c25_state.counter += n * samplerate; in update_c25() 194 int phoenix_sound_device::noise(int samplerate) in noise() argument 196 int vc24 = update_c24(samplerate); in noise() 197 int vc25 = update_c25(samplerate); in noise() 222 m_noise_state.counter += n * samplerate; in noise() 233 m_noise_state.lowpass_counter += samplerate; in noise() 528 int samplerate = buffer.sample_rate(); in sound_stream_update() local [all …]
|
/dports/emulators/mame/mame-mame0226/src/mame/audio/ |
H A D | phoenix.cpp | 127 m_c24_state.counter += n * samplerate; in update_c24() 141 m_c24_state.counter += n * samplerate; in update_c24() 170 m_c25_state.counter += n * samplerate; in update_c25() 184 m_c25_state.counter += n * samplerate; in update_c25() 194 int phoenix_sound_device::noise(int samplerate) in noise() argument 196 int vc24 = update_c24(samplerate); in noise() 197 int vc25 = update_c25(samplerate); in noise() 222 m_noise_state.counter += n * samplerate; in noise() 233 m_noise_state.lowpass_counter += samplerate; in noise() 528 int samplerate = buffer.sample_rate(); in sound_stream_update() local [all …]
|