https://github.com/jeremyruppel/logic-pro-types
Type definitions for Logic Pro's Scripter tool
https://github.com/jeremyruppel/logic-pro-types
logic-pro logic-pro-x logicprox scripter
Last synced: about 1 year ago
JSON representation
Type definitions for Logic Pro's Scripter tool
- Host: GitHub
- URL: https://github.com/jeremyruppel/logic-pro-types
- Owner: jeremyruppel
- License: mit
- Created: 2023-10-21T23:42:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T16:15:56.000Z (over 2 years ago)
- Last Synced: 2025-03-06T04:03:58.286Z (over 1 year ago)
- Topics: logic-pro, logic-pro-x, logicprox, scripter
- Homepage: https://jeremyruppel.github.io/logic-pro-types/
- Size: 74.2 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logic-pro-types
TypeScript type definitions for Logic Pro's Scripter.
### usage
Now you can do this, complete with type hints:
```ts
///
const PluginParameters: PluginParameters = [
{
name: "delay",
type: "lin",
minValue: 100,
maxValue: 500,
defaultValue: 200,
},
]
function HandleMIDI(e: NoteOn | NoteOff) {
e.send()
if (e instanceof NoteOn) {
const echo = new NoteOn()
echo.sendAfterMilliseconds(GetParameter("delay"))
}
}
```
### install
Create a `tsconfig.json` with the following compiler options:
```json
{
"compilerOptions": {
"outDir": "",
"target": "ES6",
"skipLibCheck": true
},
"include": [""]
}
```
Install `typescript` and `logic-pro-types` devDependencies of your project:
```
$ npm install --save-dev typescript logic-pro-types
```
Then, in your .ts source files, reference the `logic-pro-types` types like:
```ts
///
```
### TypeScript API Docs
Browseable documentation can be found [here][docs].
[docs]: https://jeremyruppel.github.io/logic-pro-types/