🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Simple calling Python function from OML

User: "Kosuke_IKEDA"
Altair Employee
Updated by Kosuke_IKEDA

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

Find more posts tagged with

Sort by:
1 - 2 of 21