Simple calling Python function from OML

Kosuke_IKEDA
Altair Employee

Here is a oml script 'python_call.oml' to simplify calling Python from OML.
You can call python function 'py_wav_read.py' from OML by single command.
[fs,wavdata]=python_call('py_wav_read',filename);
The example 'stc_wav_read.oml' is to read sound file and to convert to frequency domain by FFT and to convert to a one-third octave band.
Python function was used for reading sound file and you can call any python function easily by 'python_call.oml'.
0
Answers
-
Kosuke IKEDA Great example!!
0 -
I'm sorry but there was a bug in 'python_call.oml'.
Please use updated one attached.
0