mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2025-01-18 12:50:47 +00:00
reformat snippets in readme
This commit is contained in:
parent
53ad8fdff5
commit
b45abf2492
16
README.md
16
README.md
@ -39,18 +39,18 @@ import xair_api
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
kind_id = "XR18"
|
kind_id = 'XR18'
|
||||||
ip = "<ip address>"
|
ip = '<ip address>'
|
||||||
|
|
||||||
with xair_api.connect(kind_id, ip=ip) as mixer:
|
with xair_api.connect(kind_id, ip=ip) as mixer:
|
||||||
mixer.strip[8].config.name = "sm7b"
|
mixer.strip[8].config.name = 'sm7b'
|
||||||
mixer.strip[8].mix.on = True
|
mixer.strip[8].mix.on = True
|
||||||
print(
|
print(
|
||||||
f"strip 09 ({mixer.strip[8].config.name}) on has been set to {mixer.strip[8].mix.on}"
|
f'strip 09 ({mixer.strip[8].config.name}) on has been set to {mixer.strip[8].mix.on}'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -314,8 +314,8 @@ Send an OSC command directly to the mixer
|
|||||||
for example:
|
for example:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
mixer.send("/ch/01/mix/on", 1)
|
mixer.send('/ch/01/mix/on', 1)
|
||||||
mixer.send("/bus/2/config/name", "somename")
|
mixer.send('/bus/2/config/name', 'somename')
|
||||||
```
|
```
|
||||||
|
|
||||||
Query the value of a command:
|
Query the value of a command:
|
||||||
@ -325,7 +325,7 @@ Query the value of a command:
|
|||||||
for example:
|
for example:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
print(mixer.query("/ch/01/mix/on"))
|
print(mixer.query('/ch/01/mix/on'))
|
||||||
```
|
```
|
||||||
|
|
||||||
### Errors
|
### Errors
|
||||||
|
Loading…
Reference in New Issue
Block a user