Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tp-audio-ee-etudiant-h24daoua
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
La purge estivale des projets de gitlab-df sera réalisée jeudi 10 juillet vers 10h.
Show more breadcrumbs
UEEE
sar-signal-audio
gr-vhdl-h24daoua
tp-audio-ee-etudiant-h24daoua
Commits
55f10166
Commit
55f10166
authored
1 month ago
by
DAOUAIRI Houda
Browse files
Options
Downloads
Patches
Plain Diff
code
parent
4e45ee83
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/example_with_wave_file.m
+7
-12
7 additions, 12 deletions
src/example_with_wave_file.m
src/wav/single_tone_guitar_nylon_string_a2.wav
+0
-0
0 additions, 0 deletions
src/wav/single_tone_guitar_nylon_string_a2.wav
src/wav/single_tone_piano1.wav
+0
-0
0 additions, 0 deletions
src/wav/single_tone_piano1.wav
with
7 additions
and
12 deletions
src/example_with_wave_file.m
+
7
−
12
View file @
55f10166
%% this is a simple example to read and play a wave file with matlab
[x_piano, Fe] = audioread("synthetic_piano_ADSR.wav");
x_piano = x_piano(:,1); % mono
% set a string variable to a wave filename we want to open:
delay_time = 0.25;
toneFileName
=
"wav/single_tone_piano1.wav"
;
g = 0.9;
% read the content of the wave file:
K = 10;
[
data
,
fe
]
=
audioread
(
toneFileName
);
y_filtre = effet_delay_filtre(x_piano, delay_time, g, K, Fe);
% data is a matrix with 2 columns if the sound is stereo; keep the mono to ease further processing
soundsc(y_filtre, Fe);
data
=
data
(:,
1
);
% get the number of sample in vector data
N
=
length
(
data
);
% play the sound in the audio output:
soundsc
(
data
,
fe
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/wav/single_tone_guitar_nylon_string_a2.wav
deleted
100644 → 0
+
0
−
0
View file @
4e45ee83
File deleted
This diff is collapsed.
Click to expand it.
src/wav/single_tone_piano1.wav
deleted
100644 → 0
+
0
−
0
View file @
4e45ee83
File deleted
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment