> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# getInstrumentType()

```ts theme={null}
function getInstrumentType(instrument): 0 | 1 | 2;
```

Names and constants shared by every part of the API.

## Parameters

| Parameter | Type |
| - | - |
| `instrument` | \| `"guitar"` \| `"guitarcoop"` \| `"rhythm"` \| `"bass"` \| `"drums"` \| `"keys"` \| `"guitarghl"` \| `"guitarcoopghl"` \| `"rhythmghl"` \| `"bassghl"` \| `"keysghl"` |

## Returns

`0` | `1` | `2`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.