Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 5fcfcb7517038d1f44ab4e478e6e61fa > files > 2781

csound-doc-6.10.0-1.mga7.noarch.rpm

# -*- coding: utf-8 -*-
"""
This example shows how to set the message callback to receive Csound's messages
in python
"""

from __future__ import print_function

import csnd6

cs=csnd6.Csound()

def message_callback(message):
    print("__message__: "  + message, end="")

cs.SetMessageCallback(message_callback)

cs.Start()
cs.Stop()