Simple calling Python function from OML

Kosuke_IKEDA
Kosuke_IKEDA
Altair Employee
edited November 2020 in Community Q&A

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

 

<?xml version="1.0" encoding="UTF-8"?>test01.wav.png

Unable to find an attachment - read this blog

Tagged:

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.