Jump to content
Kosuke IKEDA

Simple calling Python function from OML

Recommended Posts

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'.

 

python_call.oml

stc_wav_read.oml

test01.wav

test01.wav.png

py_wav_read.py

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...